Friday, September 25, 2009

Change MAC Address in Windows, Part III: Windows Registry

Introduction:

This post shows how to change MAC Address in Windows by edit Windows Registry. Before you read this post, I suggest you to read Change MAC Address in Windows, Part I: Introduction first. Also, if you haven’t try to change MAC Address by using feature on a NIC, I recommend to try it before on Part II: Feature on NIC.

If you have tried the first method and not succeed, it’s time to use this method to change MAC Address by modify the Windows Registry. It is a best practice to backup the Windows Registry before modify it.
Note: Changing MAC Address in Windows by this method is not supported by Microsoft. I’ll not be responsible on any damage or loss on your system. Do on your own risk!

Step-by-step:

1. Before start, I’ll show the current MAC Address. It is 00-21-85-08-45-65.
Current MAC Address
2. Open command prompt by click Start -> Run -> type “cmd” -> Press Enter. Then, type command below to list all NICs on the current computer.

net config rdr

In this example, there are 3 NICs (on red mark). The NIC that I want to change MAC Address is the first one which I have observed by the MAC Address at the end of each line. Then, I have to note down the string in the bracket {}, the easiest way is to copy and paste to the Notepad. In this example, I have noted the string {F2B0CA68-D2F5-4907-938E-DD338B60A8A0}.
Find GUID of the NIC
3. Next, open Registry Editor by type the command below:

regedt32

Note: You can also use “regedit.exe”. For more information about these tools, read Differences between Regedit.exe and Regedt32.exe on Microsoft KB.
Open Registry Editor

4. On Registry Editor, navigate to HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> Class ->{4D36E972-E325-11CE-BFC1-08002bE10318}.
Navigate to the targeted key
5. You see lots of sub-folders in {4D36E972-E325-11CE-BFC1-08002bE10318} with 00xx format, for instance 0001,0002,0003, etc. Now I have to compare the value of NetCfgInstanceId on each of these sub-folders with the value that I have noted down on step 2. In this example, I have found the match on 0001 sub-folder. Normally, you should find the match on 0000 sub-folder.
NetCfgInstanceId
6. Next, check if the key “NetworkAddress” is existed on the sub-folder in step 5 or not. If not, create a new key by right-click on the sub-folder -> New -> String Value. If there is already the key, goes to step 8.
Create a String Key
7. Set name as “NetworkAddress”.

8. Double-click on the key NetworkAddress and assign MAC Addresss as you desire. In this example, I set to 0021850845AA.
Note: Enter the MAC Address without dash (-), dot (.), semi-colon (:).
Enter New MAC Address
9. The configuration will look similar to the figure below.
Registry Editor
10. Open Network Connection by Start -> Settings -> Control Panel -> Network Connections. Disable the Network Connection by right-click and select Disabled.
Disable the Network Connection
11. Enable the Network Connection by right-click and select Enabled.
Enable the Network Connection
12. Observe the Network Connection again. Now the MAC Address has been changed to 00-21-85-08-45-AA.
New MAC Address
13. To change the MAC Address value back to the original (the built-in value), simply remove out the value that you have set on step 8 and restart the network connection again.

http://www.linglom.com/2009/04/26/change-mac-address-in-windows-part-iii-windows-registry/

No comments:

Post a Comment