?
Solved

remove shutdown access is denied

Posted on 2010-08-27
3
Medium Priority
?
486 Views
Last Modified: 2012-05-10
I'm trying to write a few scripts to remotely shut down virtual machines. I'm using the following command.

shutdown -m \\10.0.3.84 -s

I get an access is denied error. Seems to be I need permissions higher then the machine being shut down. I've thought of using the command line RUNAS but it only accepts the userid and not password. Any way I can pass in the password? Does anyone have any other options on how I can run the SHUTDOWN without getting this error?
0
Comment
Question by:glenn_r
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 168 total points
ID: 33544001
If you want to remote shutdown servers/workstations etc I would recommend using "Psexec" from Systernals. This is a great tool for shutting down servers remotely but also has tons of other features as well.
http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx

command would be "psexec \\computername -username -password shutdown -s"

Hope this helps~!
0
 
LVL 5

Assisted Solution

by:tastas
tastas earned 168 total points
ID: 33544497
If you get access denied when  attempting to shut down remote machines, you should grant yourself local administrator rights on the remote machine.  If not, then run the scripts from an account which has the rights.

I agree.  Systernals provide lots of great tools.
0
 
LVL 59

Accepted Solution

by:
Darius Ghassem earned 164 total points
ID: 33545412
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question