OEM activations are performed using the BIOS. Manufacturers embed the Windows serial number in the BIOS.

OEM activation with consumer media

  • 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.

 ConstructeurSERIALCertificat
Dell32KD2-K9CTF-M3DJT-4J3WC-733WDELL_V2.1_Cert.xrm-ms
HP74T2M-DKDBC-788W3-H689G-6P6GTHPQOEM_V2.1_Cert.xrm-ms
Lenovo237XB-GDJ7B-MV8MH-98QJM-24367LENOVO_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

Laisser un commentaire

Emplacement de l’avatar

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.