Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set mac="00AABB11CC"
- C:
- cd ../../../../../..
- if not exist mac-modified if not exist mac-stock (goto :makefile)
- if exist mac-modified (goto :unhide) else (goto :hide)
- :hide
- ren mac-stock mac-modified
- reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0007 /v NetworkAddress /d %mac% /f
- goto :reboot
- :unhide
- ren mac-modified mac-stock
- reg delete HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0007 /v NetworkAddress /f
- goto :reboot
- :reboot
- netsh interface set interface "Local Area Connection" disable
- netsh interface set interface "Local Area Connection" enable
- goto :eof
- :makefile
- mkdir mac-stock
- goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement