Turn On or Off Random Hardware MAC Addresses for Wi-Fi in Windows 10  

Page 2 of 2 FirstFirst 12

  1. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #10

      My Computers


  2. Posts : 1
    Windows 10 Home Creators Edition
       #11

    Hi, Brink.

    The choice of "Change Daily" seems pretty self-explanatory in the per-network WiFi settings.
    However, it begs a question:

    How often is the MAC address changed if you simply select "On" instead of "Change Daily"?

    In particular, suppose you go to location "A" and connect, then travel to location "B" and connect (different SSID), then back to "A" -- all in the same day. What happens? What if they were physically different locations but used the same router hardware and the same SSID? (For example, a chain of stores such as a Publix.)

    Or, suppose you're in location "A" and connect, then disconnect, then connect again. Does "On" mean you spoof a different MAC every time you connect?


    Here's hoping you know the answer! Thanks!
      My Computer


  3. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #12

    Hello Forbin, and welcome to Ten Forums. :)

    "On" should be each time you connect.

    It will only apply to the Wi-Fi adapter though.
      My Computers


  4. Posts : 7,860
    Windows 11 Pro 64 bit
       #13

    Is there any point in using this feature for a home wifi router?
      My Computers


  5. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #14

    Steve C said:
    Is there any point in using this feature for a home wifi router?
    Hello Steve,

    Using a random MAC address for Wi-Fi could improve security since your PC will never show with the same MAC.

    I don't think it would matter much for a private home Wi-Fi network via router though.
      My Computers


  6. Posts : 68
    MS Win10 + Remnux Linux OS Dual Boot
       #15

    Hi @Brink pl if you can update the powershell function to enable or disable "Use Random Hardware Addresse" [ Tested on both win10 & 11]

    Code:
    Enable :
    Powershell -C "GCI -Path HKLM:SOFTWARE\Microsoft\WlanSvc\Interfaces | Where { $_.Property -like 'RandomMacState*' } | SP -Name 'RandomMacState' -Value ([byte[]](0x01,0x00,0x00,0x00)) -Force -PassThru -EA 0 -Verbose"
    
    Disable :
    Powershell -C "GCI -Path HKLM:SOFTWARE\Microsoft\WlanSvc\Interfaces | Where { $_.Property -like 'RandomMacState*' } | SP -Name 'RandomMacState' -Value ([byte[]](0x00,0x00,0x00,0x00)) -Force -PassThru -EA 0 -Verbose"
    Need OS Reboot to take effect :)
      My Computer


  7. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #16

    Disk2019 said:
    Hi @Brink pl if you can update the powershell function to enable or disable "Use Random Hardware Addresse" [ Tested on both win10 & 11]

    Code:
    Enable :
    Powershell -C "GCI -Path HKLM:SOFTWARE\Microsoft\WlanSvc\Interfaces | Where { $_.Property -like 'RandomMacState*' } | SP -Name 'RandomMacState' -Value ([byte[]](0x01,0x00,0x00,0x00)) -Force -PassThru -EA 0 -Verbose"
    
    Disable :
    Powershell -C "GCI -Path HKLM:SOFTWARE\Microsoft\WlanSvc\Interfaces | Where { $_.Property -like 'RandomMacState*' } | SP -Name 'RandomMacState' -Value ([byte[]](0x00,0x00,0x00,0x00)) -Force -PassThru -EA 0 -Verbose"
    Need OS Reboot to take effect :)
    Hello,

    I tested these commands in Windows 11, but it doesn't seem to make any difference to the setting on the Settings page. Even after a restart.
      My Computers


  8. Posts : 68
    MS Win10 + Remnux Linux OS Dual Boot
       #17

    Brink said:
    Hello,

    I tested these commands in Windows 11, but it doesn't seem to make any difference to the setting on the Settings page. Even after a restart.
    @Brink Sir
    i tested it on both win10 1904x.xxxx & w11 22621.xxx & they worked at my end . might be possible i have tweaked randommacseed too on w11 22621.xxx at same interfaces registry path child item thatswhy it worked for me. but for w10 it worked with only same single pwsh function after a reboot.

    dont know you are more known then me :)
      My Computer


  9. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #18

    Disk2019 said:
    @Brink Sir
    i tested it on both win10 1904x.xxxx & w11 22621.xxx & they worked at my end . might be possible i have tweaked randommacseed too on w11 22621.xxx at same interfaces registry path child item thatswhy it worked for me.

    dont know you are more known then me :)
    Was this suppose to be the same as option 1?
      My Computers


  10. Posts : 68
    MS Win10 + Remnux Linux OS Dual Boot
       #19

    Brink said:
    Was this suppose to be the same as option 1?
    No sir different for randommacseed. i change bytes from 3c to 3e in between to enable . to disable its not working as i checked it right now on w11 22621.xxx .

    by default its disabled after fresh install on both w10 & w11 os.

    Means this pwsh function work only for w10 but not for w11 if user want to toggle in between enable | disable.
      My Computer


 

Tutorial Categories

Turn On or Off Random Hardware MAC Addresses for Wi-Fi in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:54.
Find Us




Windows 10 Forums