Solution:
You need to add the 'admin$' share which is your C:\Windows location.
- Go to
C:\windows
and right-click -->Properties
- Hit
advance sharing
- Click the check box
Share this folder
- Enter the name
admin$
and hit Permissions - I would recommend removing 'Everyone' and adding just the users that the PsExec command will use to execute.
Run the PsExec command again and this should resolve your issue.
Edit:
You can also turn on your AutoShareServer in the registry, which will automatically create the admin shares.
- Start regisry
regedit
- Search for key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer
- Change the
AutoShareServer
key to1