Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters]
"AutoShareWks"=dword:00000000
"AutoShareServer"=dword:00000000
禁止C,D,E等默認的連接C$,D$,E$
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"restrictanonymous"=dword:00000001
禁止IPC$默認連接
上述操作執行完成後,用net share命令仍能看到ipc$ 共享,但只是不允許匿名空連接,可使用密碼連接。