Wednesday 11 March 2009

Remotely Restart a computer prompting for its name

@ECHO OFF

set /p computer=Enter Computer Name/IP Address:
shutdown -r -f -t 00 -m \\%computer%

Setting -t 00 will not show any warning on the remote computer: be careful!!

P.S. Don't name the script shutdown.bat.... :-)

No comments: