Solved

remove shutdown access is denied

Posted on 2010-08-27
3
465 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now