If I try to shutdown a computer in my LAN via the shutdown /m 192.168.55.57 /s
command, the following message appears.
192.168.55.141: Access denied(5)
How can I fix this?
If I try to shutdown a computer in my LAN via the shutdown /m 192.168.55.57 /s
command, the following message appears.
192.168.55.141: Access denied(5)
How can I fix this?
The correct credentials are not being used. Assuming that you have the credentials of a user authorized to perform a shutdown, run this command on the local computer first:
net use \\192.168.55.57 /u:USERNAME *
Enter the password when prompted. You should note that the username should have the computer name in it (i.e DESKTOP7\Username). After this command is run, windows should use the correct credentials and the shutdown should work.
On your destination machines, do the following:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
Save and right click and Run as Administrator on the destination PC. This should resolve the issue.