|
本帖最后由 fulibo 于 2024-11-20 09:49 编辑
Windows Registry Editor Version 5.00
;防火墙屏蔽445端口入站
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules]
"{EC190356-C52F-4DE4-980F-4D0800F565A6}"="v2.28|Action=Block|Active=TRUE|Dir=In|Protocol=6|LPort=445|Name=445-tcp|"
"{9D830D0C-3B75-4EF7-9F23-88C367272884}"="v2.28|Action=Block|Active=TRUE|Dir=In|Protocol=17|LPort=445|Name=445-udp|"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Defaults\FirewallPolicy\FirewallRules]
"{EC190356-C52F-4DE4-980F-4D0800F565A6}"="v2.28|Action=Block|Active=TRUE|Dir=In|Protocol=6|LPort=445|Name=445-tcp|"
"{9D830D0C-3B75-4EF7-9F23-88C367272884}"="v2.28|Action=Block|Active=TRUE|Dir=In|Protocol=17|LPort=445|Name=445-udp|"
;禁用SMB设备
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
"SMBDeviceEnabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lmhosts]
"Start"=dword:00000004
|
|