Solved

remove shutdown access is denied

Posted on 2010-08-27
3
475 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 42 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 42 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 41 total points
ID: 33545412
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

707 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