-
How to modify the MAC address in p?
As the title!
-
[ Last edited by ooaf on 2008-3-4 at 12:42 PM ]
How to modify the MAC address in p?
As the title!
-
[ Last edited by ooaf on 2008-3-4 at 12:42 PM ]
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
set /p mac=????
for /f "skip=1 delims=" %%i in ('WMIC NIC WHERE 'netconnectionid like "本地连接%%"' get caption') do set numnet=%%i
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
| Rater | Score | Time |
|---|---|---|
| ooaf | +2 | 2008-03-05 10:54 |