Restart computer from batch file
-
I don't remember ever seeing any direct way of it - however if you check out http://www.gavintaylor.co.uk/downloads you should find at the bottom of the page a file called 'Reboot', run this from the command line / batch file and it will reboot the workstation / server. I use it all the time for updates on live servers using the NT scheduler.
Gavin Taylor w: http://www.gavintaylor.co.uk
-
I don't remember ever seeing any direct way of it - however if you check out http://www.gavintaylor.co.uk/downloads you should find at the bottom of the page a file called 'Reboot', run this from the command line / batch file and it will reboot the workstation / server. I use it all the time for updates on live servers using the NT scheduler.
Gavin Taylor w: http://www.gavintaylor.co.uk
-
These should still work:
- rundll32.exe user32.dll,LockWorkStation
- rundll32.exe user.exe,restartwindows
- rundll32.exe user.exe,exitwindows