wiki:How_to_disable_NT_disk_sharing
Last modified 9 years ago Last modified on 01/19/12 16:22:22

Instructions to remove NT disk sharing:

It's been noted that NT defaults to making its local disc drives shareable. This presents a serious security hole. It's also been noted that simply marking the drive as "not shared" (by right-clicking on the drive name ->Properties->Sharing->Not Shared) doesn't survive a reboot. To disable these shares completely, perform the following steps:

  1. Open windows explorer and right click the C: drive... select SHARING from the pop-up menu. Select the NOT SHARED radio button. Click OK to accept changes. Repeat this step for all hard drives listed.
  1. Expand the C: drive to display its contents. Right click the NT installation directory (normally winnt)... SHARING from the pop-up menu. Select the NOT SHARED radio button. Click OK to accept changes.
  1. Run regedit.exe. Expand HKEY_LOCAL_MACHINE + System + CurrentControlSet + Services + LanmanServer + Paramaters. Select EDIT from the menu. Select NEW then DWORD VALUE. Type (without quotes) "AutoShareWks" if the system you are working on is NT Workstation, "AutoShareServer" if the system is an NT Server machine. This will create a Dword value of 0 and stop the administrative shares from recreating themselves during the reboot process.