Created
May 11, 2021 18:15
-
-
Save jmconway/86a28734ad915f44fa0700a97db05b2a to your computer and use it in GitHub Desktop.
Quick WMI calls to set an MAK in Windows and activate at the end of WDS/MDT deployments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$key = '' | |
$MAK = Get-WmiObject -Query "Select * from SoftwareLicensingService" | |
$MAK.InstallProductKey($key) | |
$MAK.RefreshLicenseStatus() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment