No key is required, KMS will hit it pretty quickly.

Mark Kent (MCP)
Sr. Desktop Systems Engineer
Computing & Technology Services - SUNY Buffalo State

From: [email protected] [mailto:[email protected]] On 
Behalf Of Bain.John
Sent: Friday, March 6, 2015 9:18 AM
To: [email protected]
Subject: [MDT-OSD] MDT and KMS Keys


If no product key is provided during a deployment with MDT 2013 is a KMS 
product key automatically used to finish the install ? If so is that a 
deployment script handling that or something built into windows ?



Reason I ask, been working on a custom Win8.1 pro image and just noticed that 
it had a KMS  key installed at the end of the deployment.



Which I thought was odd as the surface pros i was working on have their MSDM 
keys buried in the bios/firmware .



Also if anyone else has had issues using the MSDM key through a MDT deployment 
I made a dirty little script that could be used in a task sequence:



Set objShell = CreateObject("WScript.Shell")





strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")

Set colItems = objWMIService.ExecQuery( _

    "SELECT * FROM SoftwareLicensingService",,48)



For Each objItem in colItems

     msdmKey = objItem.OA3xOriginalProductKey

Next



strErrorCode = objShell.Run("cscript C:\windows\system32\slmgr.vbs /ipk " & 
msdmkey,0,True)



if strErrorCode = 0 then

      WScript.Echo "Success Key has been switched"

else

      WScript.Echo "Fail, Key could not be switched"

end if



Seems to work enough ;)



Reply via email to