Remote Reboot
net use \\<<server>>\IPC$ <<password>> /USER:<<user>>
shutdown /r /m \\<<server>> /c "Comment" /f /d U:0:0
If you got an error message:
A system shutdown is in progress.(1115)
You can try https://download.sysinternals.com/files/PSTools.zip
Execute:
.\pskill \\Computer-Name winlogon
.\pskill \\Computer-Name TrustedInstaller
Related Posts
Sep 08 | Docker | 1 min read |
Dec 18 | Backup using rsync | 1 min read |
Feb 22 | Add Script to Taskbar | 1 min read |
Feb 22 | Run Script As Admin | 1 min read |
Nov 27 | Git on Windows | 2 min read |