Windows Command to restart or shutdown neighbor computer remotely

You can shutdown or restart any remote or neighbor computer if you know it's IP address or computer name.
In your computer ,Go to start menu > Run Then type cmd (To open command prompt )
In command Prompt,
Use below command to shutdown any pc
shutdown -s -t -c "any message " -m
Here switch "s"-stands for shutdown.You can use "r" for restart or "l" for log-off
t- Countdown time.Give it in second
c- any commends or message
m - remote computer

Example :- shutdown -s -t 25 -c "Your computer will restart within 25 second" -m

sabu nishad

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.


  1. this one is real command.

    shutdown /s /f /c "Your Comment" /m \\

    /s = Shutdown
    /f = Force running applications to close without forewarning users
    /c = Comment/message
    /m \\ = computer Specify the target computer

  2. both will work,i tried it in windows 7...Thanks for your comment...:)