TechBuzzPro

How to Restore or Enable Administrative Shares in Windows

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Administrative shares are hidden network shares that Windows creates automatically so administrators can reach the root of every drive and the Windows folder over the network. They end in a dollar sign (C$, D$, ADMIN$, IPC$) and are hidden from ordinary browsing. If they have been removed, disabled, or are refusing connections, you can usually restore them by re-enabling the Server service, checking the registry value that controls automatic shares, and confirming the firewall and network profile allow file and printer sharing. Most home users do not need them; they matter on managed networks, for remote administration, and for backup tools that address a machine by its admin share path.

What You'll Need

  • An account that is a member of the local Administrators group on the target PC.
  • Local (or remote desktop) access to the machine whose shares you are fixing.
  • Administrator rights to open an elevated Command Prompt or PowerShell window.
  • Knowledge of whether the PC is on a domain or a workgroup, since policy can override local settings.
  • Permission to change firewall rules and the network profile (Private rather than Public).

Step-by-Step

  1. Confirm the shares are actually missing. Open an elevated Command Prompt (right-click Start, choose Terminal (Admin) or Command Prompt (Admin)) and run net share. A healthy Windows install lists IPC$, ADMIN$, C$, and one share per additional drive. If you see only IPC$ or nothing, the automatic shares are suppressed. Menu labels and wording vary slightly between Windows versions and editions.
  2. Start the Server service. Press Win+R, type services.msc, and press Enter. Find Server in the list. If its status is blank, right-click it and choose Start. Double-click it and set Startup type to Automatic so it survives a reboot. The Server service is what publishes SMB shares, so nothing else works until it runs.
  3. Check the registry value that controls automatic shares. Press Win+R, type regedit, and press Enter. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters. Look for a DWORD named AutoShareWks (on client editions) or AutoShareServer (on server editions). If it exists and is set to 0, double-click it, change the value to 1, and click OK. If it does not exist, Windows uses its default behaviour, which is to create the shares; you can create it and set it to 1 to be explicit.
  4. Restart the Server service. Back in Services, right-click Server and choose Restart. If Restart is greyed out, choose Start. Then re-run net share in the elevated prompt and confirm the dollar shares reappear.
  5. Check Group Policy if the shares still vanish. On a domain-joined PC, a policy may be deliberately removing them. Run gpresult /h %temp%\gp.html from an elevated prompt, open the report, and search for share-related settings. On a workgroup machine, open gpedit.msc if your edition includes it and review Computer Configuration > Administrative Templates > Network > Lanman Server. If a domain policy is responsible, only your IT administrator can change it.
  6. Set the network profile to Private. Open Settings > Network & Internet and select your connection. If it is marked Public, switch it to Private. Windows blocks file and printer sharing on Public networks by default, which makes the shares unreachable even when they exist.
  7. Allow sharing through the firewall. Open Control Panel > System and Security > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall. Make sure File and Printer Sharing is ticked for the Private column. If you use a third-party firewall, its own rules must permit TCP port 445.
  8. Test the connection. From another PC on the same network, open File Explorer and type \\computername\C$ in the address bar, replacing computername with the target's name or IP address. You should be prompted for administrator credentials and then see the drive root.

Common Mistakes

The most frequent error is running net share in a normal, non-elevated window and concluding the shares are gone when the command simply cannot enumerate them. Always use an elevated prompt. Another common slip is editing AutoShareWks on a server edition or AutoShareServer on a client edition; the wrong value has no effect. People also forget that the firewall rule must be enabled for the Private profile specifically, not just for Domain. Finally, do not confuse administrative shares with ordinary shared folders: deleting a user-created share in Computer Management does not remove C$ or ADMIN$, and recreating C$ manually is unnecessary because Windows rebuilds it on service restart.

Tips

Use the machine's IP address rather than its name when testing, which rules out name-resolution problems. If you need to reach the share from outside the local network, use a VPN rather than exposing port 445 to the internet; open SMB ports are a well-known attack surface. Keep the account you use for administration separate from your day-to-day account. On laptops that travel between networks, remember that switching to a Public network silently disables sharing again. If a backup tool depends on the admin share, confirm it runs under an account with local administrator rights on the target, since membership in the Administrators group is what grants access to C$ and ADMIN$.

Troubleshooting

If net share shows the shares but another PC cannot connect, work from the simplest check outward. First confirm both machines are on the same subnet and can ping each other. Then verify the network profile is Private and the firewall rule is enabled. Next, test with the IP address instead of the hostname. If you get an access-denied message, the account you are using is not a local administrator on the target, or User Account Control remote restrictions are blocking it; sign in with an account that is. If you receive a message about the specified network name no longer being available, the Server service has stopped again, so check its startup type and the System event log for errors. If the shares disappear after every reboot, a policy or a third-party security product is likely removing them; check the policy report and the security software's network protection settings. As a last resort, run sfc /scannow from an elevated prompt to check for damaged system files, then reboot.

Frequently Asked Questions

Are administrative shares a security risk?

They are only accessible to local administrators, so they are as safe as those accounts. The real risk is exposing SMB to the internet, which you should never do.

Can I delete the C$ share permanently?

You can remove it, but Windows recreates it when the Server service restarts unless the registry value is set to suppress automatic shares. Suppressing them is not recommended on managed networks.

Why do I only see IPC$?

That usually means the Server service is not running properly or the automatic-share registry value is set to 0. Start the service and check the value.

Do administrative shares work on Windows Home?

The shares exist, but Home edition lacks some management tools and Group Policy Editor. You can still enable sharing through Services, the registry, and the firewall settings described above.

Why does the share work by IP but not by name?

That points to name resolution rather than sharing. Check DNS settings or use the IP address, which bypasses the lookup.

Does disabling SMBv1 affect these shares?

No. Administrative shares use modern SMB versions, so leaving SMBv1 disabled, which is the safer default, does not break them.