We have have come across instances where the push deploy tool will fail when testing access to the admin share (Admin$). After some troubleshooting we found that the share was missing from Computer Management. After some research we found an Microsoft article that explains how to re-enable it through the registry.
Warning: It is advised that you back up the registry BEFORE making any changes to ensure you can revert back to previous settings if anything goes wrong.
Source: https://support.microsoft.com/en-us/help/816113/how-to-use-registry-editor-to-restore-administrative-shares-in-windows
Restore Administrative Shares
To restore administrative shares so that they are automatically created in Windows:
- Click Start, and then click
Run. - In the Open box, type
regedit, and then click OK. - Locate and then click the AutoShareServer value in the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
Note The AutoShareServer value must be set as a REG_DWORD type. When this value is set to 0 (zero), Windows does not automatically create administrative shares. This setting does not apply to the IPC$ share or to shares that you create manually. - Either delete the AutoShareServer value or set the value to 1. To do so, use one of the following methods:
- To delete the AutoShareServer value, click Delete on the Edit
menu. When you are prompted to confirm the deletion, click
Yes. - To set the AutoShareServer value to 1, click Modify on the Edit menu. In the Value data box, type 1, and then click OK.
- To delete the AutoShareServer value, click Delete on the Edit
- Quit Registry Editor.
- Stop and then start the Server service:
- Click Start, and then click
Run. - In the Open box, type
cmd, and then click OK. - At the command prompt, type the following commands, pressing ENTER after each command:
net stop server
net start server - Type exit, and then press ENTER.
- Click Start, and then click