![change wireless mac address on windows 10 change wireless mac address on windows 10](https://blog.rottenwifi.com/wp-content/uploads/2021/03/image-54.png)
# After script is run please reboot for setting to take effect
#CHANGE WIRELESS MAC ADDRESS ON WINDOWS 10 WINDOWS 10#
# Disable Random Hardware Address Option in Windows 10 by adding the hardware address to registry.
![change wireless mac address on windows 10 change wireless mac address on windows 10](https://www.digitalcitizen.life/wp-content/uploads/2019/01/change_mac_address-19.png)
I powershelled it and added the ability to search for the wireless adapter. The only part of the script you should need to change is "Wireless-AC 8265" in line 3 to the description of the WLAN card that is correct for your device. After rebooting the option will be greyed out and no users will be able to turn it on. This script reads the MAC addresses of the NICs, filters out the desired MAC, removes the hyphens to make the data suitable for a registry value, and adds the data to the registry. I decided to share this script in case anyone else needs a way to easily disable this option while keeping their devices MAC addresses the same. I searched for solutions to automate the disabling of this option but I found none so I created one myself. After setting the MAC and rebooting the Use random hardware address option is greyed out. The best way I found to disable this is to add a registry key that sets the MAC address of the WLAN card to its actual MAC. This feature caused some headaches on our campus because we use NAC that is based on MAC addresses so when cadets would turn it on they would lose network connectivity on their school issued laptops. The switch is located at Settings > Network and Internet > Wi-Fi > Use random hardware address. Windows 10 has a feature (even on Enterprise) that allows users to very easily change the MAC address of their WLAN card just by flipping a switch.