A legacy but valuable handy utility called netshis useful to manage network configurations on a computer or, in this case, disable the Windows Firewall. Using netsh advfirewall set, we manage Windows Firewall individually on each location or all network profiles.
netsh advfirewall set currentprofile state – 這個命令管理目前活動的網絡配置文件防火牆。
netsh advfirewall set domainprofile state – 只管理域配置文件的防火牆。網絡 配置文件。
netsh advfirewall set privateprofile state – 只管理私人配置文件的防火牆。網絡 配置文件。
netsh advfirewall set publicprofile state – 這個命令只會管理 公用 網路設定檔的防火牆。
netsh advfirewall set all profiles state – 這個命令將同時管理所有網路設定檔。