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)

18 Apr 2012   #11
ROBO731

Windows 7 Home Premium x64
 
 

Thank you. That was the information that I needed. I entered the command like this:

psshutdown [[\\desktop-pc] | [-u username [-p password]]] -s| [-c] [-t 60|0:1] [-v 60] [-m Shuttingdown]

When I pressed enter it said that [-u is not recognized. I did as you said and dragged the file to my user, but this is now the issue. Thanks for your help so far.


My System SpecsSystem Spec
.
18 Apr 2012   #12
carwiz

Windows 7 Pro-x64
 
 

Command-Line Syntax Key

Don't type bars, brackets, braces or dots. These are not part of the command. They are used to show the syntax of the command choices and options. They are not part of the command you type. Use the key in the above link to learn the meaning of each.

Also, don't use -c unless you want to allow the user of the PC you're shutting down to cancel the process. And use a message that will be meaningful to the user. Simply saying "Shuttingdown" could cause the user to panic.
My System SpecsSystem Spec
18 Apr 2012   #13
carwiz

Windows 7 Pro-x64
 
 

What are you trying to do, exactly? Why are you shutting down the PC? You can also do this with a scheduled task on the PC if all you want to do is shut it down at a certain time.

The time setting you specified is also incorrect. [-t 60] means the command will execute after 60 seconds. Then you added "0:1" which means the command will execute one minute after midnight.

Read and understand the command syntax and decide how you will use it. We can't read it for you.
My System SpecsSystem Spec
.

18 Apr 2012   #14
ROBO731

Windows 7 Home Premium x64
 
 

Thank you, I was in a rush so I didn't get to try it without the bars, brackets, etc. I do want to allow the user to be able to cancel the shutdown. I am only shuttingdown the computer because people often leave it on, but if someone is using it I want them to be able to cancel the shutdown. I will create a more meaningful message. That one was just for testing. I removed the 0:1 part, I originally didn't understand what that instruction meant, so I just put 0:1. I did understand the syntax for the most part, bu I don't usually use cmd or commands like these. I have done as you said and entered this command: psshutdown \\desktop-pc -u username-p password-s -c -t 60 -v 60 -m Shuttingdown

It said: "Couldn't access DESKTOP-PC: Access is denied." and "If DESKTOP-PC is already performing a shutdown you must abort it before issuing a different command."
My System SpecsSystem Spec
18 Apr 2012   #15
Ztruker

Windows 10 Pro X64
 
 

I'd recommend you edit out your userid and password.
My System SpecsSystem Spec
18 Apr 2012   #16
Ztruker

Windows 10 Pro X64
 
 

Follow the syntax I posted here: Remote shutdown Access Denied (5)
My System SpecsSystem Spec
18 Apr 2012   #17
carwiz

Windows 7 Pro-x64
 
 

Why did I even respond?
My System SpecsSystem Spec
18 Apr 2012   #18
ROBO731

Windows 7 Home Premium x64
 
 

Sorry about all of the confusion, I have edited my post if you haven't noticed already. And yeah I noticed that my local computername and password were show, but that's only for that account. I use a much more secure password for other things, but I changed it anyway.
My System SpecsSystem Spec
22 Aug 2013   #19
TxRedCat

Windows 8 Pro 64 bit
 
 

Enabling Windows 8 Remote Shutdown from command.
I am using this solution on a home Workgroup network. Solution works for shutdown.exe
and psshutdown.exe. It should fix similar problem with Windows 7.

The problem is access is denied when attempting a remote shutdown using the interactive
mode or the following command:
shutdown.exe /s /m \\COMPUTERNAME /t 00

Result:
COMPUTERNAME: Access is denied.(5)

CHANGE THE FOLLOWING SETTINGS ON THE REMOTE COMPUTER:
Control Panel, Network and Sharing Center, Change Advanced Sharing settings
"Private" enable "Turn on File and Printer sharing"

Add Registry Key
RUN regedt32.exe
Goto:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Right click and add new DWORD
"LocalAccountTokenFilterPolicy"=dword:00000001

When user name and password are not the same on the local and remote computer change the
following on the remote computer:

Change Local Security Policy
RUN secpol.msc
Local Security Policy, Security Settings, Local Policies, User Rights Assignment
Add "Everyone" to "Force shutdown from a remote system"
My System SpecsSystem Spec
10 Dec 2013   #20
rodyz

W7 Pro x64
 
 
Corrupt installation of Windows 7?

Though it is an old thread, my post might help others, who come here - like me - by google. I did everything TxRedCat wrote in this thread - no success (for sure - same user, same password, administrative privileges on both PCs). Then I had the intuition to activate the built-in administrator accounts with same password on the local and the remote PC, - and now the remote shutdown works. By the way this also solved the problem that I could not use the administrative shares like C$. It seems that it is not a general problem of Windows 7 (and I found no general solution with Google), as there is no problem with other PCs running Windows 7 Prof SP1 I administer. The phenomena might indicate a corrupt OS. But any other explanation is welcome.
My System SpecsSystem Spec
Reply

 Remote shutdown Access Denied (5)




Thread Tools Search this Thread
Search this Thread:

Advanced Search




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 06:00.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App