未名Q

此生若能得幸福安稳,谁又愿颠沛流离。

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: 订阅 订阅 :: 管理 ::
@echo off
regsvr32 netcfgx.dll /u /s
regsvr32 netshell.dll /u /s
regsvr32 netman.dll /u /s
reg add "HKCU\Software\Policies\Microsoft\Windows\Network Connections" /v NC_AllowAdvancedTCPIPConfig /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Policies\Microsoft\Windows\Network Connections" /v NC_EnableAdminProhibits /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Policies\Microsoft\Windows\Network Connections" /v NC_LanProperties /t REG_DWORD /d 0 /f
exit

reg文件:

Windows Registry Editor Version 5.00

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



posted on 2012-03-29 11:00  未名Q  阅读(499)  评论(0编辑  收藏  举报