0

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?

Blackwood
  • 3,123
  • 11
  • 23
  • 32
toni
  • 11
  • 1
  • 3
  • Are you launching command prompt as an administrator? Are you on a domain? – spikey_richie Jul 18 '19 at 07:22
  • It is not working when we launch it as administrator. – toni Jul 18 '19 at 07:24
  • 2
    You need to be administrator on the remote computer for this to be allowed. Either become a domain admin or get your user or a usersgroup that you are a member of (such as DOMAIN\Users) in the administrators group on that pc. – LPChip Jul 18 '19 at 07:25
  • How could I create a domain admin? We already googled it, but found nothing. – toni Jul 18 '19 at 07:28
  • I wrote about this a long time ago here: https://superuser.com/questions/1038571/reboot-windows-10-pc-remotely/1038573#1038573 Follow these steps and see if that helps any. – Vomit IT - Chunky Mess Style Jul 18 '19 at 18:43

2 Answers2

0

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.

zandermar18
  • 308
  • 2
  • 8
0

On your destination machines, do the following:

  1. Open Note Pad
  2. Save as LocalAccountTokenFilterPolicy.bat
  3. Right Click and select Edit and paste 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.

Ibra
  • 1