Click Start, and then click
Run.
In the Open box, type
regedit, and then click OK.
Locate, and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer
Note The registry subkey AutoShareServer must be set as type REG_DWORD. When the this value was set to 0 (zero), the Windows does not automatically create administrative shares. Be aware that this does not apply to the ipc$ share or shares so you create manually.
On the Edit menu, click
Modify. In the Value data box, type
0, and then click OK.
Exit Registry Editor.
Stop and then start the Server service. To does this, follow these steps:
Click Start, and then click
Run.
In the Open box, type
cmd, and then click OK.
At the command prompt, type the following lines. Press Enter after all line:
net stop server
NET start server
Type exit to close the Command Prompt window.
How to remove administrative shares in Windows Server or 2012