Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turn Default share c$ on/off

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
I've managed to turn of the default share C$ off by mistake on a Win2k Server machine - how do I turn it back on?

Thanks very much
 
How did you manage that?

Did you stop some services? or just stop the share (which isnt possible AFAIK)

Aftertaf
________
Regain control of your PC, at
 
There was a windows share (not ntfs) set up on C: which I took off. Then when I ran net share from the command prompt the C$ Default share was missing as well as the other share I had taken off.

However after playing around for a bit I found out how to restore the C$ share:

1. In Control Panel, double-click Administrative Tools, and then double-click Computer Management.

2. Expand Shared Folders, right-click Shares, and then click New File Share.

3. In the Folder to share box, type the path of the folder that you want to share, or click Browse to locate the folder.

4. Type the share name that you want to use followed by a dollar sign, and then click Next.

5. To make the share accessible to administrators only, select the Administrators have full control; other users have no access check box, and then click Finish.

6. Click Yes to create another share, or click No to return to the Computer Management console.
 
You can stop sharing the root of the C: drive or any other drive but they are replaced next time the server service is restarted.

"Sometimes, a cigar is just a cigar." - Sigmund Freud
 
Hi,

this may help... start/stop auto shares

This can be done through registery
Start the registry editor
Move to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
If you are using Workstation create a value (Edit - Add Value) called AutoShareWks (AutoShareServer for server) of type DWORD and press OK. It will ask for a value, type the number 0.
Close the registry editor
Reboot
This can also be done using the policy editor. Start the policy editor (poledit.exe), load the default computer profile, and expand the Windows NT Network tree, then Sharing and set "Create hidden drive shares" to blank for server/workstation.

There are a few other options though. The first is to use NTFS and set protections on the files so people may be able to connect to the share, but they will not be able to see anything. The second is to delete the shares each time you logon, this can be done through explorer, but it would be better to have a command file run each time with the lines
net share c$ /delete
and for all the other shares, however these shares are there for a reason so your machine can be administered by the servers, so if you delete them system managers may have something to say about it!





Aslam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top