sodcalculator

10 Tech How-To

Enable Admin Shares in Windows: Step-by-Step

Guide 10-7921 · Updated · Step by step

Admin shares are hidden network shares that Windows creates automatically for administrative purposes, such as C$, D$, and ADMIN$. They allow remote management and troubleshooting. This guide shows you how to enable them if they have been disabled, and how to verify they are working. You’ll need administrator rights on the Windows machine.

What You’ll Need

  • Administrator account on the Windows PC or server.
  • Access to Command Prompt or PowerShell (run as administrator).
  • For remote access: network permissions and firewall rules allowing File and Printer Sharing.

Step-by-Step

  1. Open an elevated command prompt. Press Windows+X and select “Terminal (Admin)� or “Command Prompt (Admin)� from the menu. Click “Yes� if prompted by User Account Control.
  2. Check current admin share status. Type net share and press Enter. Look for entries like C$, ADMIN$, and IPC$. If they are missing, admin shares are disabled.
  3. Enable admin shares via registry (most common method). Type reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f and press Enter. This allows admin shares to be accessed by remote administrators. (This is particularly relevant on Windows 10/11 with UAC enabled.)
  4. Enable admin shares via services. Ensure the “Server� service is running. Type sc config lanmanserver start= auto and press Enter, then sc start lanmanserver and press Enter. This service provides file and printer sharing support.
  5. Enable File and Printer Sharing in Windows Firewall. Open Control Panel → System and Security → Windows Defender Firewall → Allow an app or feature through Windows Defender Firewall. Check “File and Printer Sharing� for both Private and Public networks. Click OK.
  6. Restart the Server service (or reboot). Type net stop server and then net start server in the elevated prompt. Alternatively, reboot the computer to apply all changes.
  7. Verify admin shares are now visible. Run net share again. You should see C$, ADMIN$, and IPC$ listed. If not, try accessing them locally by typing \\localhost\C$ in File Explorer.

Common Mistakes

  • Not running the command prompt as administrator. Without elevation, registry changes and service commands will fail with “Access deniedâ€�.
  • Typing the registry command incorrectly. The path and value name must be exact. A typo creates a new key that has no effect.
  • Forgetting to restart the Server service. Some changes only take effect after the service is restarted or the system is rebooted.
  • Disabling admin shares via Group Policy. If your computer is domain-joined, a Group Policy setting (Computer Configuration → Administrative Templates → Network → Network Shares) may disable admin shares. You’ll need to override this with a local policy or contact your domain administrator.

Tips

  • Use the registry method only on standalone workstations or where you have full control. On domain computers, Group Policy may overwrite your changes.
  • Admin shares are hidden but not secure by default. They require valid administrative credentials to access. Do not disable them unless you have a specific reason.
  • For remote access, ensure the “File and Printer Sharingâ€� firewall rule is enabled for the network profile you are using (Private or Public).
  • If you only need to access admin shares from the local machine (e.g., for backup), you don’t need to modify the firewall.

Troubleshooting

  • Admin shares still not showing after following steps. Check if the “LocalAccountTokenFilterPolicyâ€� registry value is set to 1. Also verify that the “Serverâ€� service is running (services.msc). If you’re on a domain, check with your IT admin for Group Policy conflicts.
  • Access denied when trying to connect to \\localhost\C$. Ensure you are logged in with an account that has administrator privileges on that machine. If using a Microsoft account, use the local admin account or add the Microsoft account to the Administrators group.
  • Admin shares disappear after reboot. This can happen if Group Policy reapplies settings. Check the event logs for policy application errors. You may need to set the registry value again after reboot, or use a startup script.
  • Cannot access admin shares from another computer. Test connectivity with ping. Then check the firewall on the target machine: ensure “File and Printer Sharingâ€� is allowed on the relevant network profile. Also, ensure the target machine’s network profile is set to “Privateâ€� if you are on a trusted network.

Frequently Asked Questions

Q: What are admin shares?
A: Admin shares are hidden network shares (C$, D$, ADMIN$, IPC$) created by Windows for administrative and remote management purposes. They are not visible in network browsing but can be accessed by name.

Q: Why are admin shares disabled by default?
A: They are not disabled by default on most Windows editions, but security policies or third-party security software may disable them to reduce attack surface. Microsoft recommends keeping them enabled for management, but disabling them is a common hardening practice.

Q: Is it safe to enable admin shares?
A: Yes, as long as you have strong passwords and firewall rules that restrict access to trusted networks. Admin shares require administrative credentials, so they are generally safe on private networks.

Q: Can I enable admin shares without a reboot?
A: Yes, restarting the Server service is usually sufficient. However, if the registry change doesn’t take effect, a reboot may be necessary.

Q: How do I disable admin shares again?
A: Delete the registry value you added (or set it to 0) and restart the Server service. Alternatively, use Group Policy to disable them permanently.

Q: Do admin shares work on Windows Home editions?
A: Yes, admin shares exist on Windows Home editions, but the registry policy key is the same. However, some remote management tools may not be available on Home editions.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →