使用管理员身份运行
@echo off
sc config MpsSvc start= auto
net start MpsSvc
netsh firewall set opmode enable >nul
netsh advfirewall firewall add rule name="deny tcp 445" dir=in protocol=tcp localport=445 action=block
netsh advfirewall firewall add rule name="deny udp 445" dir=in protocol=udp localport=445 action=block
echo 安全加固完成
pause