DeviceId icon indicating copy to clipboard operation
DeviceId copied to clipboard

MacAddress changes

Open AlexHolly opened this issue 1 year ago • 1 comments

Related: https://github.com/MatthewKing/DeviceId/issues/67 version: 6.4.0

I encountered an issue with AddMacAddress and setting the excludeWireless is not helping.

After installing Windows Updates the deviceId changed so I investigated a little bit.

The resulting devideId is changing in case of:

  1. Windows Update (driver updates?)
  2. Enable/Disable Bluetooth also changes the results even with excludeWireless: true

Is there a way to improve it so it will use the Mainboard NetworkAdapter or first LanAdapter found and return the Physical Address always?

AlexHolly avatar Oct 12 '23 11:10 AlexHolly

Yep, this is definitely possible, and it's something I'd like to do in the future - the MAC address component(s) have a few problems with edge cases. However, I'm reluctant to make the changes in v6 because that will break backwards compatibility with any existing device identifiers. Maybe in version 7...

Until then, it's really easy to create your own custom version of the MAC address component and add it to your project.. You can just copy+paste the existing MacAddressDeviceIdComponent (or the WMI/MMI alternatives) into your project, make the changes you want, and then add it to your DeviceIdBuilder via AddComponent.

MatthewKing avatar Oct 12 '23 12:10 MatthewKing