Created
June 26, 2019 15:22
-
-
Save betillogalvanfbc/18a5c241396cdb8917523ad49948375c to your computer and use it in GitHub Desktop.
changemac.bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Current Mac Address | |
getmac /v | findstr /b Ethernet | |
rem Search Ethernet of Brand Network | |
reg query HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318} /s /f DriverDesc | |
rem Verify class | |
rem Down Interface after to change | |
netsh interface set interface "Ethernet" disable | |
rem Modify Mac Address | |
reg add HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0002 /v "NetworkAddress" /t REG_SZ /d "1B2B3B4B9B9B" | |
rem Up Interface before change mac | |
netsh interface set interface "Ethernet" enable | |
rem Verify Change Mac Address | |
getmac /v | findstr /b Ethernet | |
pause | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment