Situatie
If you prefer PowerShell over Command Prompt, you can use a cmdlet in this utility to shut down your PC. To do that, access Windows Search, type PowerShell, and select “Run as Administrator.” Select “Yes” in the User Account Control prompt.
On the PowerShell window, type the following cmdlet. Here, replace “seconds” until the shutdown time. Then, press Enter.
Start-Sleep -Seconds seconds; Stop-Computer
For example, to shut down your PC in five minutes, run the following cmdlet:
Start-Sleep -Seconds 300; Stop-Computer
To cancel a scheduled shutdown, run the following cmdlet:
shutdown /a
Leave A Comment?