To disable the automatic administrative shares (such as, C$, D$), go to the "HKEY_LOCAL_MACHINE" hive and in \System\CurrentControlSet\Services\LanmanServer\Parameters create a REG_DWORD called "AutoShareServer" (for NT Server) or "AutoShareWks" (for NT Workstation) with the value "0".
net share IPC$ /delete - but you need to do that after each boot
Yes, I've already done that registry-thing. C, and WINDOWS Share are gone, because I deleted them. But there is no way to delete that IPC stuff. No option like "delete" or "turn off". That's actualy the problem... :-(
Within the parameters key create a new DWORD value and name it AutoShareServer for NTServer (and 2000 server & up) or AutoShareWks for NT Workstation (and 2000 pro) and give it a value of 0. I show this above in detail! Here is another method at boot thru a logon script or batchfile:
VIA BATCHFILE COMMANDS:
NET SHARE C$ /DELETE
NET SHARE D$ /DELETE
NET SHARE ADMIN$ /DELETE
NET SHARE IPC$ /DELETE
NET SHARE DFS$ /DELETE
NET SHARE COMCFG$ /DELETE
OR just typing NET USE * /d /y should do it for ALL of them!
(etc. for all the shares you wished dropped continuing driveletters as needed. This can be tricky with some apps, so watch it. Some need IPC$ & some need ADMIN$. Stopping the Server Service stops this also additionally to take care of it all at once & not share ANY of them!)
If a drive's not shared in ANY capacity, it cannot be used... another door closed!