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"
Texas