This is how I do it to my front office computer.
shutdown /s /m \\computer_1 -c "Powering Off" -t 10 -f
I will break it down for you..
shutdown (obvious)
/s = Shutdown the computer (Powers off)
/m \\computer_1 = Remote computer to shutdown/restart/abort
-c "Powering Off" = Shutdown comment (maximum of 127 characters)
-t 10 = Set timeout for shutdown to xx seconds
-f = Forces running applications to close without warning
You can see the full list at
http://www.computerhope.com/shutdown.htm.
I use this as a batch file that runs when I shutdown my laptop to go home so that the front office PC gets shutdown also without me having to manually do it.
Couple of things to note (or should I say things I found out when hitting my head on the desk).
1: This does work on a peer to peer network this is what I have set up and it worked fine. Both PC's are WinXP Pro so that might be something there also.
2: Make sure you have an account on the PC you are going to shut down. I kept getting access denied because I forgot that the front office PC had a different password for my user account than my laptop.
3: Sometimes you will still have an issue with this, if so go to the computer you are wanting to shutdown. Go to start>run and type gpedit.msc and hit enter. Go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options find 'Network access: Sharing and security model for local accounts" and make sure it is set to "Classic - local users authenticate as themselves"
If it still doesn't work I don't know what to say other than hit your head on your desk a few times and it may come to you...
![Grin ;D](https://www.computerhope.com/forum/Smileys/classic/grin.gif)