Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Remote shutdown Access Denied (5)

15 Apr 2012   #1
ROBO731

Windows 7 Home Premium x64
 
 
Remote shutdown Access Denied (5)

I know this has been asked about a lot, but I've searched for a solution to my problem for a while know and I can;t get it to work. I have an asministrator account on both computers with the same password. I have tried to shut it down with the command itself and the GUI. It always returns with the same error: "DESKTOP-PC: Access is denied.(5)". I have downloaded psshutdown, but I don't really know how to use it. Any help will be appreciated. Thanks in advance!


My System SpecsSystem Spec
.
15 Apr 2012   #2
kegobeer

Windows 7 Ultimate x64 SP1
 
 

My System SpecsSystem Spec
16 Apr 2012   #3
ROBO731

Windows 7 Home Premium x64
 
 

Yes, as I stated above, I have searched Google and cannot find a solution there. That is the reason I'm asking my question here. I know that those are the commands for psshutdown, I have downloaded it, but I don't know what to do now.
My System SpecsSystem Spec
.

16 Apr 2012   #4
Ztruker

Windows 10 Pro X64
 
 

Are you using the -p password -u user parameters with the PsShutdown command?

Also, read here: Access denied when using psShutdown and net use
My System SpecsSystem Spec
16 Apr 2012   #5
ROBO731

Windows 7 Home Premium x64
 
 

I haven't even gotten up to that yet. And yes I will use it when I try it, but I have only downloaded the PStools, I don't know what to do next/how to use them.
My System SpecsSystem Spec
17 Apr 2012   #6
Ztruker

Windows 10 Pro X64
 
 

kegobeer gave you a link to the help for it. Did you read through that? If so, what specific questions do you still have?

I did a few google searches for how to use psshutdown and found one thread that had this in it:

psshutdown \\computername -u "Admin user name" -p "Admin password" -s -t 60 -m "Sorry, System Must Shut Down for Maintenance of Network"

The \\computername is the name of the computer you want to shutdown. Enter net view from a Command Prompt to see the available names.
I tried it and it worked, shut the computer down in 60 seconds.
Replace -s with -r and it will restart instead of shutting down.
My System SpecsSystem Spec
17 Apr 2012   #7
ROBO731

Windows 7 Home Premium x64
 
 

I get this error when I try to use the normal shutdown command. So my questions now is what to do with psshutdown. I have downloaded psTools, but I don't know what to do now. When I type in the Syntax into CMD it just tells me that the command is not recognized. So I am wondering how to use psshutdown. I have only downloaded it, I have not doe anything else with it.
My System SpecsSystem Spec
17 Apr 2012   #8
kegobeer

Windows 7 Ultimate x64 SP1
 
 

Come on now - you need to read the instructions! I posted a link to them! We can't do that for you, you have to do that for yourself.
My System SpecsSystem Spec
17 Apr 2012   #9
ROBO731

Windows 7 Home Premium x64
 
 

Okay let me explain this one more time. I already know that that's the command. I have seen all of that before. I have tried using that in CMD. It tells me that the command is not recognized. Is there something I must do between downloading psTools and entering that command into command prompt? Telling me multiple times that I need to re-read a link that you have sent me is not really being helpful.
My System SpecsSystem Spec
18 Apr 2012   #10
Ztruker

Windows 10 Pro X64
 
 

You need to download PsShutDown then run it. It has to be placed either in the current directory when you open a Command Prompt or in a directory defined in the PATH environment variable.

If you downloaded PSTools then it is included in that package. The PsTools download package includes an HTML help file with complete usage information for all the tools.

You need to either add the directory (Folder) you unzipped PSTools in to your PATH statement or copy psshutdown.exe to the directory you want to run it form. Normally this would be C:\Users\xxxxxxxx, where xxxxxxxx is your account name.

The when you run psshutdown, you will no longer get a command not recognized error message.

Hope that helps.
My System SpecsSystem Spec
Reply

 Remote shutdown Access Denied (5)




Thread Tools




Similar help and support threads
Thread Forum
Remote shutdown other pc...access denied "PLEASE HELP!!!!"
Hi, I want to shutdown other computer in our network so in CMD i type 'Net View' I see my other pc so i do 'Shutdown -i' i type pc name shutdown and then get access denied!! PLEASE HELP:cry:
Network & Sharing
Is remote shutdown and turn on possible using W7's Remote Desktop?
If it can't be done, what are the alternatives? Thank you. Edit: I just read how to shutdown with Remote Desktop and I'm going to try that out. So, the only remaining questions are how can I remotely turn on a workstation on a lan? Can I do it at a pre-determined time? What about remotely...
Network & Sharing
Care to recommend a remote access method beside Remote Desktop?
I have a home network of 4 Win 7 computers which I leave running when I'm away from home to provide data to my website, among other things. In the past, I've been using Remote Desktop to access my home computers. It works very well, but it's always a challenge getting everything set up to work...
Network & Sharing
Remote Shutdown | Well-known "Acces is denied (5)"
Hi sevenforums ! So here is my question. I'm on my network at home, and i've 2 computers, running windows 7 ultimate x64, on same workgroup. I'm on an account with admin rights (i'm not on admin account, but that's the same, it doesn't work) and i'm trying to remotely shutdown pc1 from pc2. I...
Network & Sharing
Infection Of Windows Through Remote Access/Remote Desktop
This morning, I heard a nationally syndicated computer expert state that some Chinese hackers were "getting into" Windows based computers through "Remote Access/Remote Desktop" even if the service is turned off. According to the guru, "They will turn it on for you." Being very concrete, as well...
System Security
"Access denied:" How to overcome denied access to a folder
I'd like to put a .cmd file in my c:\Documents and Settings\All Users\Start Menu\Programs\Startup directory, but \Documents and Settings has a lock on it and tells me "Access denied" when I click on it. Is this a job for "Take Ownership" or is there another way? The instructions for "Take...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:43.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App