Solved

remove shutdown access is denied

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
NTP problem 24 78
Drive mapping problem 7 47
set-owner : The term 'set-owner' is not recognized as the name of a cmdlet 3 40
Problem to Citrix 2 18
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

733 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