locked
mdt oem product key automate RRS feed

  • Question

  • Hello,

    I'm working on an mdt server but I keep getting problems.
    After the deployment of windows 10 is the license is not activated so we have to enter it manually every time on every laptop (HP), we want it to be set up with the mdt deployment.

    I tried to fix it with a powershell (SetOEMProductKey) Code:

    $ProductKey = (Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey
    iex "cscript /b C:\Windows\System32\slmgr.vbs -ipk $Productkey" 
    Start-Sleep 5
    iex "cscript /b C:\Windows\System32\slmgr.vbs -ato"

    Thursday, September 6, 2018 8:11 AM