Computer shuts down when streaming a movie from a file server

Victor Mehta 196 Reputation points
2021-06-03T00:52:06.36+00:00

Ok so I have two computers one which is running Windows 10 Pro and has mp4 files on it located in a shared folder. The second computer is running Windows 8.1 Pro. From the Windows 8.1 computer I go through the network and play these videos on the Windows 8.1 computer. On the Windows 10 Pro computer I've setup a scheduled task when on idle the task scheduler executes the command shutdown.exe with /s switch. This works fine the computer shuts down but does this when I'm watching a video. I need for this shutdown to work (on the Windows 10 Pro) when there is no network traffic. Can this be done or can someone tell me what am I doing wrong ? Any suggestions are welcome.

101872-idle-shutdown.png

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-06-03T02:49:15.217+00:00

    Hi,

    Based on my understanding, you want scheduled task to execute the command of shutdown when there is no network traffic. Is that right? Please feel free to let me know if I have any misunderstanding.

    You might consider following two methods:

    1.Tigger trigger an event 10001 that your computer disconnects from the Internet, then execute the command of shutdown.

    For your reference:

    Windows Task Scheduler: Trigger an Event When Internet Connects/Disconnects

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    2.If you just want to monitor player's activity. You can use PowerShell command to check whether player program is running, if not, then execute the command of shutdown.

    Best Regards,
    Candy


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.