通过批处理修改注册表中IP地址和子网掩码后,本地查看TCP⼀IP 确认显示数据丢失,为什么?如何解决?

2025-02-22 15:46:26
推荐回答(1个)
回答1:

我这里有个处理方法:这个是我自己测试过的脚本(记得后缀要改成.reg)
脚本如下:
这个是禁用TCP/IP的:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Network Connections]
"NC_AllowAdvancedTCPIPConfig"=dword:00000000
"NC_LanChangeProperties"=dword:00000000
"NC_EnableAdminProhibits"=dword:00000001

这个是启用TCP/IP的:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Network Connections]
"NC_AllowAdvancedTCPIPConfig"=dword:00000000
"NC_LanChangeProperties"=dword:00000001
"NC_EnableAdminProhibits"=dword:00000000

希望这个答案能对你有帮助 ^.^