|
|
我来回答你这个问题,PIIS的系统对网络安全这方面很严的,如果按常规的来搞,几乎没什么特色可言。所以我之前使用过他的很多版本,也研究了好久,要想能正常的局域网访问要解一下防火墙。我很早就找到方法了,只是自用,影响不到他人。既然还有这么热衷的,我也献上一份力了。
代码保存为任意名称.bat,运行一下马上恢复内网访问了。
- :: 1. 解锁公用配置文件的本地规则权限
- reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v AllowLocalPolicyMerge /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v AllowLocalPortExceptions /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v AllowLocalProgramExceptions /t REG_DWORD /d 1 /f
- :: 2. 恢复公用配置文件默认入站策略
- reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v DefaultInboundAction /t REG_DWORD /d 0 /f
- :: 3. 强制刷新组策略并重启防火墙服务
- gpupdate /force
- net stop MpsSvc
- net start MpsSvc
复制代码 有图有真像哦,不是乱来的。
|
|