Question

Locked

How to disable windows default share using group policy or script

By suyambulingamcsl ·
How to disable windows default share using group policy or script

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

See how you go with this

by Jacky Howe In reply to How to disable windows de ...

Remove Administrative Shares
<br>
http://www.windowsnetworking.com/kbase/WindowsTips/Windows2000/AdminTips/Security/RemoveAdminShares.html

<br><br>
If the system does not need to be accessed or administered remotely you can permanently remove the hidden administrative shares by editing the registry. Go to:
<br>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters
<br><br>
To remove the hidden shares add a DWORD entry called AutoShareWks and set the DWORD value to 0. If you later need to restore access to the hidden shares you can simply delete the AutoShareWks DWORD entry and reboot the computer and the shares will automatically be recreated. The PC's will have to be restarted for this to take effect.
<br><br>
PsExec v1.94<br>
By Mark Russinovich<br>
Published: January 4, 2008<br>

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
<br><br>
And the batch file and noshare.reg file can be copied to the workstations where it can be run to add the Registry entry. add2reg.cmd
<br><br>
=========================
<br>
Windows Registry Editor Version 5.00
<br>
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]<br>
"AutoShareWks"=dword:00000000<br>
=========================
<br><br>
=========================
<br>
C: regedit /s noshare.reg<br>
goto tim<br>
<br>
:tim<br>
%Systemroot%\system32\shutdown /r /f<br>
goto end<br>
<br>
:end<br>
=========================
<br><br>
<i>Keep us informed as to your progress if you require further assistance.</i>
<br><br>
<i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
</i>

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums