Remote shutdown Access Denied (5)
I have a computer that I want to shutdown remotely via command line (the shutdown -i), and if I have "password enable sharing" turned on I get access denied(5) but if that is turned off it works fine. How can I get this working again? I have read that I may need to create a user account with the same username and password of the account on this computer I wish to shutdown, but I have tried this and it does not work, plus having a extra account on either computer is kind of annoying, isn't there a way I can do it without having the same user account on my two PCs? Maybe like just using the username and password of the remote computer directly without actually having that account created on my PC?
October 13th, 2012 9:37pm

Hello, You can alternatively add your matching credentials to the server or computer you are trying to shut down remotely and make sure that the user has sufficient local privileges to perform a shutdown. I checked the shutdown switches but I could not find a switch that lets you enter alternate credentials for the shutdown. Miguel Fra | Falcon IT Services, Miami, FL www.falconitservices.com | www.falconits.com | Blog
Free Windows Admin Tool Kit Click here and download it now
October 13th, 2012 11:08pm

As Falcon said you need sufficient Local Privileges. You should create a user and make it a member of the Local Administrators Group on the Machine you want to shut down. The credentials should be identical the ones you are logged in with. Then from CMD you can try a SHUTDOWN -S (for shutdown) -m (for remote computer) \\ComputerName -t (to specify time to wait) 0 If that doesn't work, try creating credentials on your PC that are the same as those used by the Administrator account on the other PC. From CMD you can type "runas /U:UserNameGoesHere CMD" and enter the password when prompted. Then try the command from the newly presented CMD Box.
October 14th, 2012 4:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics