question

VictorMehta-3520 avatar image
0 Votes"
VictorMehta-3520 asked CandyLuo-MSFT answered

Computer shuts down when streaming a movie from a file server

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-10-network
idle-shutdown.png (15.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CandyLuo-MSFT avatar image
1 Vote"
CandyLuo-MSFT answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.