Home > Windows, Windows Security > How to Disable C$ Sharing on Windows Operating System

How to Disable C$ Sharing on Windows Operating System

By default all Microsoft Windows NT based operating system exposes hidden administrative shares options, which allowing the administrator of a machine to access the machine via the network. The administrative shares are:

  • C$: To access to a partition or root directory. Other partitions available on your computer are also accessible via their letter, followed by the character "$", for example D$, E$, etc
  • ADMIN$: To access to% systemroot%, to manage a machine on the network
  • IPC$: Allowing the communication network between processes
  • PRINT$: Remote access to printers.

So by default you can access all files in drive C: by simple connecting it by typing \\yourcomputer\C$ on Start – Run… menu or Windows Explorer.

Entering the administrative sharing

For some security constraints, it may be necessary to remove access to administrative shares.

To do this, we must edit the registry, by type the following command in the Start – Run… menu:

regedit

Then go to this item:

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters

Then, create a new DWORD value named AutoShareWks and set it to 0. To activate it again set the value to 1.

Your registry will looks like this:

Modified registry

Modifications made will still be persistent even after restarting your PC.

Technorati Tags:

Akhmad Daniel Sembiring

vITraining.com – Qualified IT Products, Outsourcing, and Services

Ligarwangi.com – Linux, E-book, Coffee, Gift, etc

  • Share/Bookmark
  1. No comments yet.
  1. No trackbacks yet.
This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.