When running the psexec command to remotely install or execute something on a sever on the same network the following error was displayed.
Couldn\'t access Serve
Solution:
You need to add the 'admin$' share which is your C:\Windows location.
C:\windows and right-click --> Propertiesadvance sharingShare this folderadmin$ and hit PermissionsRun 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.
regeditHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServerAutoShareServer key to 1