赞
踩
# 查询所有防火墙状态
netsh advfirewall show allprofiles state
# 关闭所有防火墙
netsh advfirewall set allprofiles state off
# 开启所有防火墙
netsh advfirewall set allprofiles state off
# 域网络
netsh advfirewall set domainprofile state off
# 专用网络
netsh advfirewall set privateprofile state off
# 公用网络
netsh advfirewall set publicprofile state off
powershell命令
# 查看帮助
Get-Help Add-MpPreference -Detailed
# 添加排除项(扩展名)
Add-MpPreference -ExclusionExtension '.php'
# 删除排除项
Remove-MpPreference -ExclusionExtension '.php'
Add-MpPreference -ExclusionPath 'C:\work_dir'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。