I'm working on a project who have a licensing feature. It is licensed to the machine where it is installed, so, to generate a unique ID for the machine I'm using the MAC address of the network adapter.
I'm using WMI to retrieve it. This works fine in machines with only one adapter, but, when the machine has two or more adapters, I can't guarantee that I always get the same adapter from the WQL query.
I'm thinking about getting the "first adapter who has a valid MAC, ordered by index". Would it work? Or the adapter's index can change even without removing the adapter physically?