Solved

remove shutdown access is denied

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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…

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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now