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.
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.