Shutdown/Restart windows using command-line through RDP
For shutting down… C:\Windows\System32\shutdown.exe -s -t 20 -c “Bye” -f -d p:0:0 For rebooting… C:\Windows\System32\shutdown.exe -r -t 20 -c “Restarting” -f -d p:0:0
Tech Tips and Tricks
For shutting down… C:\Windows\System32\shutdown.exe -s -t 20 -c “Bye” -f -d p:0:0 For rebooting… C:\Windows\System32\shutdown.exe -r -t 20 -c “Restarting” -f -d p:0:0