1.用途
Windows中利用防火墙规则,禁止程序联网更新,可防止破解后的程序联网更新后,破解失败,如Aodbe Photoshop等
2.命令用法
netsh advfirewall firewall add rule name="Block AdobeCollabSync" dir=OUT program="C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\AdobeCollabSync.exe" action=block
3.实际效果截图
4.批处理命令
@echo off
netsh advfirewall firewall add rule name="Block Acrobat Tray" dir=OUT program="C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\acrotray.exe" action=block
netsh advfirewall firewall add rule name="Block AcroRd32" dir=OUT program="C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\AcroRd32.exe" action=block
netsh advfirewall firewall add rule name="Block acrodist" dir=OUT program="C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\acrodist.exe" action=block
netsh advfirewall firewall add rule name="Block AcroLayoutRecognizer" dir=OUT program="C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\AcroLayoutRecognizer.exe" action=block
netsh advfirewall firewall add rule name="Block AdobeCollabSync" dir=OUT program="C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\AdobeCollabSync.exe" action=block
echo All rules added successfully!
pause
将上面的代码复制到记事本,另存为.bat
批处理文件,用管理中身份执行即可达到批量添加防火墙规则的目的