Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, January 31, 2016 9:07 AM | 1 vote
Hello Community,
I have a pc at my home that i would like to be able to shutdown remotely. After searching a little bit i foundout that using the console i could shut it down with the command 'shutdown -i' and typing in the computer name i gotten from 'net view'. I had some issues with net view and turned of my firewall and now it works again. just the thing that i dont like is when i try to execute the shutdown command, filled in the required text the command window says error code 5 access denied. Can anyone help me with this issue and explain me why this happens.
Thanks,
Luc
All replies (12)
Thursday, February 4, 2016 9:21 PM âś…Answered
Not that I can find on Home. My testing is thwarted at every turn. The more I search for answers the more convoluted it gets. Basically as far as I can tell Home is not geared for remote access. Even giving a user permission to remotely shutdown the machine, always with access denied. An old Sysinternals thread has a reply saying Home (XP in that case) makes all network access as guest, so that fits with why I always get access denied.
So can only suggest you use something like TeamViewer to remotely connect to the machine and shut it down.
Sunday, January 31, 2016 11:13 AM | 1 vote
Suggestions:
Disable UAC and check the issue.
Disable firewall.
Create another user account which will be run as administrator.
S.Sengupta, Windows Experience MVP
Sunday, January 31, 2016 7:24 PM | 1 vote
User Acount Controll? Do i have to set this to never on the remote computer? or on my computer?
firewall is disabled on my pc and the firewall on the other pc is on
Sunday, January 31, 2016 7:46 PM | 1 vote
This will happen if you do not have the required rights over the PC you are trying to shutdown. So is the user you are running the shutdown command from an admin on the machine you are trying to shutdown?
Tuesday, February 2, 2016 6:56 AM | 2 votes
Hi Luc,
Check to see if the following thread would help here, specially for the reply from TxRedCat:
Quoted:
I am using this solution on a home Workgroup network. Solution works for shutdown.exe and psshutdown.exe It works for Windows 8 and should work for 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 both computers 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"
Reference:
Regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Tuesday, February 2, 2016 7:35 PM | 1 vote
This will happen if you do not have the required rights over the PC you are trying to shutdown. So is the user you are running the shutdown command from an admin on the machine you are trying to shutdown?
I dont have the administrator rights on the remote pc. I have an Administrator account on the remote pc that has another name. Am I ment to create my account on my laptop ("MrDisk") on the remote pc? Like make a new user called MrDisk with same password and administrator rights?
Tuesday, February 2, 2016 7:36 PM | 1 vote
Hi Luc,
Check to see if the following thread would help here, specially for the reply from TxRedCat:
Quoted:
I am using this solution on a home Workgroup network. Solution works for shutdown.exe and psshutdown.exe It works for Windows 8 and should work for 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 both computers 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"
Reference:
Regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Sorry I'm stuck at the 'Add Registry Key'.
Can you tell me what I need to do there
Tuesday, February 2, 2016 8:27 PM | 1 vote
Hello,
Yes creating a user with the same name and password with administrator rights would work.
However looking at the post by Michael Shao, I did just the last part;
"When user name and password are not the same on both computers 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" "
Worked for me in a test.
Wednesday, February 3, 2016 3:24 PM | 1 vote
Hello,
Yes creating a user with the same name and password with administrator rights would work.
However looking at the post by Michael Shao, I did just the last part;
"When user name and password are not the same on both computers 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" "
Worked for me in a test.
Sorry for my lack of knowledge, im on windows 10 and cant find secpol.msc using run, command prompt, system32 and so on. can you tell me where to find it
Wednesday, February 3, 2016 8:01 PM
Well a sorry on my part maybe, what version of Windows 10 are running Home? No secpol in that. If Pro press Windows+R to bring up the run box and enter 'secpol.msc' (without quotes)
Thursday, February 4, 2016 8:56 AM
running windows 10 home ? any way to do it?
Wednesday, January 31, 2018 4:26 AM
Halo