WakeOnLAN icon indicating copy to clipboard operation
WakeOnLAN copied to clipboard

WOL access denied on shutdown but not wake

Open Econdoc opened this issue 8 years ago • 3 comments

Two computer on LAN, both running Windows 10 AU, 64-bit. I am using Wake On Lan V 2.11.12. I have been able to wake another computer on my LAN, but when I try to shut it down (Sleep or Shutdown) I get this error: Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) I temporarily disabled the firewalls on each computer...same error.

What am I doing wrong?

Econdoc avatar Nov 22 '16 13:11 Econdoc

Shutdown can be difficult. To shutdown a remote computer, you have to use an account that has authority to do that. Some examples are here. Shutdown Help

basildane avatar Nov 22 '16 16:11 basildane

Hello

To solve te problem do the 3 things

1- open firewall

windows+x

open powershell as admin and enter this command

netsh firewall set service RemoteAdmin enable

hit enter

close the powershell

2- add new regkey

windows+r

go to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

create the key REG_DWORD32 name it "LocalAccountTokenFilterPolicy" set the value of the key to 1

3- add administrator username and password in the shutdown properties menu of the machine like in this picture https://wol.aquilatech.com/help/shutdown/wmiShutdown.png

oh i forgot the last thing to do is to say thanks ;)

iSystemeFR avatar Mar 12 '19 03:03 iSystemeFR

Hey guys. New user. Amazing! Curious about the aforementioned though. I just allowed WMI in windows firewall and can shutdown etc. is that the same/equivalent to running the netsh command?

(from my brief uneducated reading, that command also seems to be deprecated fwiw)

klepp0906 avatar Mar 25 '20 19:03 klepp0906