OEM activations are performed using the BIOS. Manufacturers embed the Windows serial number in the BIOS.
OEM activation with consumer media
- With this tools : « Media Création Tools » activation will happen automatically.
- Select you language and click next
Activation OEM by script
Windows 10 or Windows 11
We can retrieve the serial number of a computer and activate it via a script. You will need an internet connection to finalize the activation.
$key = (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
cscript c:\Windows\System32\slmgr.vbs -ipk $key
cscript c:\Windows\System32\slmgr.vbs -ato
Windows 7 Pro
The number is unique per manufacturer, and you will also need the certificate associated with the manufacturer.
Constructeur | SERIAL | Certificat |
---|---|---|
Dell | 32KD2-K9CTF-M3DJT-4J3WC-733W | DELL_V2.1_Cert.xrm-ms |
HP | 74T2M-DKDBC-788W3-H689G-6P6GT | HPQOEM_V2.1_Cert.xrm-ms |
Lenovo | 237XB-GDJ7B-MV8MH-98QJM-24367 | LENOVO_V2.1_Cert.xrm-ms |
Check activation status
- Windows 7 (vbs)
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From SoftwareLicensingProduct")
Coltest = int(0)
IsWinActivated = True
For Each objitem In colItems
IF int(objitem.GracePeriodRemaining) = 0 Then Coltest = True else Coltest = False
IF Coltest = False then IsWinActivated = False
Next
IF IsWinActivated = False then
wscript.echo "Activation Failed"
END IF
- Windows 10 ( powershell)
$ProductKey = (Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey
cscript "c:\windows\system32\slmgr.vbs" -ipk $ProductKey
cscript "c:\windows\system32\slmgr.vbs" -ato
$ta = Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" | Where-Object -Property Name -Like "Windows*"
$active = $ta.LicenseStatus
$description = $ta.Description
write-host "--- $description ---"
if ($active -ne 1) {
write-host "Activation Failed"
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
}
0 commentaire