tal ormanda Posted November 22, 2009 Share Posted November 22, 2009 Hi I wanted to use the command line to remote shutdown my machines in my house here. The problem is that I keep getting Access Denied.What I have tried: I tried going into Local Security Policy and adding the names of the systems in the workgroup, but when I hit APPLY, it saves it Failed to Save. So what gives? Also, there is no Local Security Policy that I can find in Windows XP Home.OS's: Xp, 7 Link to comment Share on other sites More sharing options...
Oxygen Posted November 22, 2009 Share Posted November 22, 2009 (XP) u can use remote desktop to do so , but u won't b able to find shutdown button from start menu ,To shut down a remote computer when you are using Remote Desktop, press CTRL+ALT+END, and then click Shutdown. Or, use the shutdown command at a command prompt. For additional information about the shutdown command, type shutdown /? at a command prompt.OrYou can use the shutdown.exe as a batch file.Just go to notepad and type:shutdown.exe -sSave the file with a .bat extension.OrClick on the desktop and type Alt+F4. This will call up the shutdown dialog, where you get the usual shutdown options like "Shut down", "Shut down without installing updates", "Restart", "Stand by", and "Hibernate". Oryou can type the Ctrl+Alt+End hotkey, which is the Remote Desktop version of Ctrl+Alt+Del and consequently takes you to a dialog where you can do various system-type things, among them logging off and shutting down. Link to comment Share on other sites More sharing options...
tal ormanda Posted November 22, 2009 Author Share Posted November 22, 2009 I know how to use the shutdown command..... I want to remote shutdown other machines on the network.... read my original post.... Link to comment Share on other sites More sharing options...
Oxygen Posted November 22, 2009 Share Posted November 22, 2009 now if i got it right u can do thisStart --> run --> cmd --> shutdown -ii hope this will help u Link to comment Share on other sites More sharing options...
MrJinje Posted November 23, 2009 Share Posted November 23, 2009 (edited) PsShutdown can do what you are looking for. Usage: psshutdown [[\\computer[,computer[,..] | @file [-u user [-p psswd]]] -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t nn|h:m] [-n s] [-v nn] [-e [u|p]:xx:yy] [-m "message"]Perform the command on the remote computer or computers specified. If you omit the computer name the command runs on the local system, and if you specify a wildcard (\\*), the command runs on all computers in the current domain.-u Specifies optional user name for login to remote computer.-p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.Just write a simple batch script that shutdowns each of you machines.# If you want to shutdown several servers, you can make a batch file like below. allshutdown.batpsshutdown.exe \\server1 -t 10 -fpsshutdown.exe \\server2 -t 10 -fpsshutdown.exe \\server3 -t 10 -fpsshutdown.exe \\server4 -t 10 -fIf you logined by different user, you specify,psshutdown.exe \\server1 -t 10 -f -u Administrator -p passwordpsshutdown.exe \\server2 -t 10 -f -u Administrator -p passwordpsshutdown.exe \\server3 -t 10 -f -u Administrator -p passwordpsshutdown.exe \\server4 -t 10 -f -u Administrator -p password Edited November 23, 2009 by MrJinje Link to comment Share on other sites More sharing options...
Ascii2 Posted November 23, 2009 Share Posted November 23, 2009 (edited) I know how to use the shutdown command..... I want to remote shutdown other machines on the network.... read my original post....The shutdown "command" is actually a utility/program, not a command.The shutdown utility is a remote shutdown utility (will also shutdown the local instance of Windows when remote computer or computers are not specified).The shutdown utilities from Windows 2000 Resource Kit and Windows XP used different arguments to shutdown the computer.With the Windows XP utility, use the "-s" and "-m \\computername" arguments to shutdown a remote computer.I am uncertain what Windows 7 has. Edited November 23, 2009 by Ascii2 Link to comment Share on other sites More sharing options...
Oxygen Posted November 25, 2009 Share Posted November 25, 2009 (edited) this is what u c when u use start --> run --> cmd --> shutdown -i that if u r using win xp < i think it is the better way to remotely shutdown more than 1 pc using "add" and also u have more than option like shutdown , restart and log off and u also will b able to warn the user who uses the remotely pc using the "comment" section Edited November 26, 2009 by Oxygen Link to comment Share on other sites More sharing options...
Phenomic Posted November 26, 2009 Share Posted November 26, 2009 There's a free utility from Sysinternals -- PsTools.I use it on my home network to suspend machines, shutdown also possible, but suspend is better cos you can wake them up too with magic packet.psshutdown.exe" \\192.168.2.115 -d -t 0 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now