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.