Remote Reboot

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