Could you please? Read Key from MSDM Table Code: $currentpath = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent $key = .\GetWin8Key.exe slmgr.vbs -ipk $key slmgr.vbs -ato Start-Sleep -Seconds 10 kill -Name wscript* -Force Thanks Edit: There's no need any more, 'cause it won't work under WinPE.
How about using this to gather the key : Code: powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey" BTW: FaiKee posted this some time ago .
Thank Slave77, I've tried OEM-DM.exe using WMIC and Powershell ways (I have no idea about VB) under WinPE 5.1 but to no avail. Code: WMIC: WMIC Path SoftwareLicensingService Get OA3xOriginalProductKey /format:list PowerShell: powershell (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA2xBiosMarkerStatus VB: strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery( _ "SELECT * FROM SoftwareLicensingService",,48) For Each objItem in colItems Wscript.Echo "OEM_DM Bios Key: " & objItem.OA3xOriginalProductKey Next PS. Powershell relevant components been added.
Here are some slightly off-topic source codes, shows exactly where the data resides in the MSDM table ( byte 56 ) in python. https://github.com/christian-korneck/get_win8key