Remote shutdown Access Denied (5)

ROBO731

New member
Member
VIP
Local time
6:41 AM
Messages
223
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 Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox

My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
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 Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox
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 Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Ultimate x64 SP1
CPU
Core i7-2670QM
Memory
8GB DDR3 PC3-10600
Graphics Card(s)
Intel HD Graphics 3000 + GeForce GT 540M
Screen Resolution
1920x1080
Hard Drives
1TB 5400RPM Seagate
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 Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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.
 
Last edited:

My Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
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. :confused:

Read and understand the command syntax and decide how you will use it. We can't read it for you. ;)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
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 Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox
I'd recommend you edit out your userid and password.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Why did I even respond? :rolleyes:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
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 Computer

OS
Windows 7 Home Premium x64
CPU
Intel i7-2600K
Motherboard
ASUS Sabertooth Z77
Memory
G.SKILL Ripjaws (16 GB Total)
Graphics Card(s)
EVGA GeForce GTX 560 Ti
Monitor(s) Displays
ASUS
Screen Resolution
1920x1080 (2 Monitors)
Hard Drives
Hitachi GST Deskstar 2 TB (HDD)
Samsung 840 Pro 256 GB (SSD)
PSU
SeaSonic X Series X650 Gold
Case
Antec DF 85
Keyboard
Microsoft SideWinder X4
Mouse
MadCatz M.M.O. 7 & Logitech G35
Internet Speed
50 down
Antivirus
Avast Free, SuperAntiSpyware Free, Malwarebytes Free
Browser
Mozilla Firefox
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gigabyte
OS
Windows 8 Pro 64 bit
CPU
AMD Phenom II X4 980 & 955
Motherboard
GA-MA785GT-UDH3 (4)
Memory
GSkill
Graphics Card(s)
XFX ATI 6770HD
Monitor(s) Displays
Projector & Viewsonic's
Hard Drives
A lot and SSD's
PSU
Antec 550, 650 & 750
Case
Antec 300, Lian Li & Cooler Master CM Stacker
Cooling
AMD and Cooler Master
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 Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
W7 Pro x64
Back
Top