[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 503
  • Last Modified:

Disable administrative shares in XP Pro

How do I disable the $C share in XP PRo. I have tried many things, but it keeps reestablishing on boot.

Any tips?

Thanks.
0
ainselyb
Asked:
ainselyb
1 Solution
 
Steve AgnewSr. Systems EngineerCommented:
If you have the firewall turned on, does it really matter ?
0
 
Steve AgnewSr. Systems EngineerCommented:
But found this if you REALLY want to:

The system automatically creates hidden "administrative shares" for its logical drives C:, D:, and so forth which it names C$, D$ and so forth. It also creates the admin$ hidden share for to the \winnt folder. These shares are designed for remote access support by domain administrators. By default, if you delete these admin shares, they will be recreated when you reboot. To disable permanently so they will not be recreated on the next reboot, use the following Windows NT / Windows 2000 / Windows XP registry hack:
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters
Name: AutoShareServer for servers
Name: AutoShareWks for workstations
Type: REG_DWORD
Value: 0

For background: Q156365. For details on disabling in Windows XP, see Q314984. In Windows 2000 and Windows XP, you disable the shares via

Start
Settings
Control Panel
Systems Tools panel
Shared Folders
Double-click the Shared Folders branch to expand it
Click Shares
In the Shared Folder column, right-click the share you want to disable
Click Stop sharing
Cick OK.
NOTE: If you disable an administrative share that you have created, it will not be automatically enabled after you restart your computer, and you will need to recreate the share.
Perhaps the best approach to protect hard drive resources on workstations is to disable the server service if you can. There are a few workstation applications that need server service running, in particular, some SNA emulation packages.

0
 
Steve AgnewSr. Systems EngineerCommented:
Oh, I should give credit since I didn't type that out.  Found here: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/AdminTips/Network/DisableWindowsNTW2KXPHiddenAdministrativeShares.html  But this way if they discontinue the information it will still be here.

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ibu1Commented:
To disable the admin share do this steps exactly
Using Regedit, find the HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters registry key.
Find the entry that is named AutoShareServer.
Change the data value of this registry key to 0.
0
 
Walter PadrónCommented:
By default, if you delete the C$, D$, etc.. Administrative shares, they will be recreated when you reboot. To disable this feature, edit:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters

Double click on AutoShareServer and set it to 0 to disable it for a server.
Double click on AutoShareWks and set it to 0 to disable it for a workstation.
If the entries are not present, Add Value of type REG_DWORD. The Range is 0 (disable) or 1 (enable - the default).
0
 
levine_the_machineCommented:
Have a look at this MSKB article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;314984#EIACAAA

Quote from the article:

"Hidden administrative shares that are created by the computer (such as ADMIN$ and C$) can be deleted, but the computer re-creates them after you stop and restart the Server service or restart your computer. Hidden shares that are created by users can be deleted, and they are not re-created after you restart your computer. Microsoft Windows XP Home Edition does not create hidden administrative shares."

Looks like the OS working as designed, but not as desired.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now