文件名称:vista 上網補丁
文件大小:990B
文件格式:CMD
更新时间:2012-04-30 15:39:16
vista
右擊-以管理員身份運行 @echo off @color 0a @Title Windows Vista 注册表修改脚本 @Setlocal ENABLEDELAYEDEXPANSION ::变量初始化 @( set reg_path_id= set reg_path= set nic_id= set reg_path_2= set nic_zt= ) ::变量初始化 @for /f "usebackq tokens=7 delims=\" %%a in (`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"`) do ( set reg_path_id=%%a set "reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\!reg_path_id!" for /f "usebackq tokens=3" %%b in (`"reg query "!reg_path!" | find /i "ServiceName""`) do ( set NIC_id=%%b for /f "usebackq tokens=3" %%c in (`"reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\!nic_id!" | find /i "DhcpConnForceBroadcastFlag""`) do ( set nic_zt=%%c if "!nic_zt!" NEQ "0x0" ( reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\!nic_id!" /v DhcpConnForceBroadcastFlag /t reg_dword /d 0 /f )))) pause