Given my discovery today that MAK keys are also getting activated and burned, not just OEM keys (https://forums.fogproject.org/topic/6365/order-of-operations-product-key-activation-client-product-key-updater/9). Would it be possible to change the code such that it only attempts to activate if the key matches what is set in the web interface and if it hasn’t successfully activated before?
To expand upon my above request, I think you could do/use the following:
- check if the partial local key (slmgr.vbs /dli) matches some part of the key listed in the database/FOG web interface
- if false, update local key to match web interface (and then either rebooting or restarting the checks to verify it was set properly)
- check if the local key has already been activated; slmgr.vbs /dli, check for “License Status: Licensed” – if it reads “License Status: Notification”, then it has not successfully activated (i.e. it’s prompting the user to activate)
- if it has not yet been activated, try to activate