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 ;)