Search This Blog

Monday, October 12, 2009

Windows XP - Disable default C (C$) Drive Network Sharing

By default, Windows XP will share C drive (\\localhost\C$) over the network accessible by Administrators. I do not like this default behaviour so I decided to turn in off.

The following are steps to turn off default local drive shares across networks. I've only tried it on Windows XP.
  1. Type 'regedit.exe' in "command prompt" or "run"
  2. Navigate to:
    HKey_Local_Machine\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\AutoShareWks
  3. If it doesn't exist, create one using DWORD key
  4. Set it to 0 (zero) to disable C$, D$ or other local drive shares over the networks
  5. Set it to 1 (one) to enable C$, D$ or other local drive shares over the networks
  6. Restart your Windows XP
  7. To confirm, in "command prompt", type 'net share'
  8. You shouldn't see C$, D$ or other local drives
  9. Done!