Moje knowledge base, pro Vás i pro mne. Také spousta blbin okolo.

Disabling admin$, IPC$, Admin Share$

21.02.2019 09:58

REG ADD HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters /f /v AutoShareWks /t REG_DWORD /d 0
REG ADD HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters /f /v AutoShareServer /t REG_DWORD /d 0
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa /f /v restrictanonymous /t REG_DWORD /d 1@echo.

net share admin$ /delete
net share C$ /delete
net share D$ /delete
net share E$ /delete

net stop LanmanServer
sc config LanmanServer start= disabled