Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Enable/Disable Random Hardware (MAC) Address for Wi-Fi on Windows

November 13, 2025

Enable/Disable Random Hardware (MAC) Address for Wi-Fi on Windows

Random hardware addressing feature in Windows 10 and 11 enhances privacy and security by generating a unique, randomized MAC address for each Wi-Fi network connection. This feature’s main purpose is to increase user privacy and anonymity by reducing the ability to track devices and collect user behavior data on public Wi-Fi networks. When enabled, a unique, randomly generated MAC address is used to connect to each Wi-Fi network instead of the physical hardware MAC address of the wireless adapter.

In Windows, you can enable or disable MAC address randomization either for a specific Wi-Fi network or for all wireless networks.

  1. Go to Settings -> Network & Internet -> Wi-Fi
  2. Enable or disable MAC address randomization by pressing the Use random hardware addresses toggle. Enable or disable random hardware addresses for Wi-Fi in Windows

On my Windows 10 laptop, there is an option to generate a new, unique MAC address every day.

Windows uses a random MAC address that changes daily.

This option is also available in the settings for each saved Wi-Fi profile. Press Manage known networks -> select the saved WLAN network (profile) and enable/disable the Use random hardware addresses switch.

The random MAC feature is supported by the most recent hardware. If your device doesn’t support address randomization, you won’t see this option in the Wi-Fi network settings.

Random Hardware Address option missing in Windows Settings app

This is usually caused by:

  • Not all Wi-Fi adapters support MAC address spoofing.
  • This feature is not supported by the installed wireless driver. Try to download and install the latest driver version for your Wi-Fi adapter.

Using random MAC addresses usually only makes sense for public Wi-Fi networks. However, this feature may cause problems when used in corporate or small office/home office (SOHO) wireless networks.

  • If the DHCP server has reserved an IP address for your device’s MAC address, using a random MAC address will prevent you from obtaining that static IP address.
  • If a Captive Portal is used for Wi-Fi device authorization, you may face different connection issues.
  • Filtering access by MAC address on the network will not work properly.
  • It’s harder for administrators to track devices with random MAC addresses on the network
  • Some software licenses may be tied to a computer’s physical MAC address.

For devices on a corporate network, administrators usually disable the random hardware address feature. The built-in Windows Group Policy templates don’t provide an option that allows disabling the use of random hardware (MAC) addresses. However, it can be disabled through the registry.

Get the ID and MAC address of your Wi-Fi adapter:

Get-NetAdapter | Where-Object {$_.MediaType -match 'Native 802.11'}| select Name, MacAddress,InstanceID

PowerShell: get WiFi adapter MacAddress,InstanceID

Open the registry editor and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}. Search the subkeys for your WIFI_InstanceID (contained in the NetCfgInstanceId value).

Find WLAN adapter registry key

Create a REG_SZ parameter named NetworkAddress in this registry key. Specify the actual MAC address of your Wi-Fi adapter in the value of this parameter. In my example, the MAC address of the wireless adapter is D0:37:45:12:51:BD. However, when adding it to the registry, it must be entered without hyphens or spaces.

Set fixed hardware MAC address in Windows

Restart the computer and check that the option to use a random MAC address in the Control Panel is now grayed out (inactive).

Use Random Hardware Addresses option is greyed out

To automatically disable this option, you can use the following PowerShell script:

$WiFi = Get-NetAdapter | Where-Object {$_.MediaType -match 'Native 802.11'}
$RegPath = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}"
$MacAddress = $WiFi.MacAddress -replace "[:\-]", ""
$subKeys = Get-ChildItem -Path $RegPath
foreach ($subKey in $subKeys) {
$props = Get-ItemProperty -Path $subKey.PSPath -ErrorAction SilentlyContinue
if ($props -and $props.DriverDesc -eq $WiFi.InterfaceDescription) {
New-ItemProperty -Path $subKey.PSPath -Name "NetworkAddress" -Value $MacAddress -PropertyType String -Force
Write-Host "NetworkAddress set for adapter: $($WiFi.InterfaceDescription)"
break
}
}

PowerShell script: set fixed MAC address, disable using random

This PowerShell script can be run on users’ computers via a Group Policy, SCCM, or other automation tools.

Alternatively, to prevent users from enabling or disabling the MAC address randomization option themselves, you can restrict access to the network settings by hiding the corresponding page in the Settings menu via Group Policy (use the hide:ms-settings:network-wifi option).
0 comment
0
Facebook Twitter Google + Pinterest
PowerShellQuestions and AnswersWindows 10Windows 11
previous post
Automate Software and Settings Deployment with WinGet Configure (DSC)

Related Reading

Configuring RemoteApps Hosted on Windows 10/11 (without Windows...

January 25, 2025

Bridging Multiple Network Interfaces on Windows

November 21, 2024

Fix: Windows Update Tab (Button) is Missing from...

December 16, 2024

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 23, 2025

How to Detect Which User Installed or Removed...

June 25, 2025

Find a Process Causing High Disk Usage on...

July 16, 2025

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • SMB over QUIC: Mount File Share over Internet without VPN on Windows Server 2025

    November 4, 2025
  • How to Find a Previous Computer Name in Windows

    October 28, 2025
  • Stop Windows Server from Auto-Shutdown Every Hour

    October 22, 2025
  • How to Delete a Windows Service via CMD or PowerShell

    October 16, 2025
  • Resource Fair Sharing in Windows Server Remote Desktop Services (RDS)

    October 6, 2025
  • How to Disable (Enable) Credential Guard in Windows 11

    October 6, 2025
  • Wrong Network Profile on Windows Server after Reboot

    September 30, 2025
  • How to Get Windows 10 Extended Security Updates After End-Of-Life

    September 24, 2025
  • Blocking NTLM Connections on Windows 11 and Windows Server 2025

    September 23, 2025
  • Windows Stucks at ‘Getting Windows Ready, Don’t Turn Off Computer’

    September 15, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Assign (Passthrough) a Physical GPU to a Hyper-V Virtual Machine
  • Run PowerShell Scripts on a Schedule with Task Scheduler
  • Fix: Slow Startup of PowerShell Console and Scripts
  • Check Windows 11 Hardware Readiness with PowerShell Script
  • Extend an Expired User Password in Active Directory
  • Run Elevated Commands with Sudo on Windows 11
  • How to Add or Remove Pinned Folders to Quick Access with PowerShell and GPO
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top