Search This Blog

Wednesday, February 15, 2012

Windows shutdown and restart through CLI

From time to time i need to restart or shutdown a virtual-machine through an RDP connection,
so i have created 2 shortcuts on my desktop using the following commands:

For restart the host:
shutdown -r -t 01

For shutdown the host:
shutdown -s -t 01

Where t is the time parameter in seconds,
for stopping this process use: shutdown -a 

this will work for Microsoft windows XP and 2000 and Win7.

No comments:

Post a Comment