intel板载网卡芯片82541如何在DOS下改mac
发布网友
发布时间:2022-04-23 12:39
我来回答
共1个回答
热心网友
时间:2023-05-28 20:07
::修改MAC地址,只适合只安装过一块网卡的电脑
@echo off
::查询本地连接网络号
for /f "skip=1 delims=[]" %%i in ('WMIC NIC WHERE 'netconnectionid like "本地连接%%"' get caption') do set numnet=%%i
::设置MAC地址
set /p mac=请输入新MAC地址:
set regpath=HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\%numnet:~-4%
REG ADD "%regpath%" /v "MAC Address" /d "%mac%" /f
REG ADD "%regpath%\Ndi\Params\NetworkAddress" /ve /d "%%mac" /f
REG ADD "%regpath%\Ndi\Params\NetworkAddress" /v "ParamDesc" /d "MAC Address" /f