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.

 ConstructeurSERIAL
Dell32KD2-K9CTF-M3DJT-4J3WC-733W
HP74T2M-DKDBC-788W3-H689G-6P6GT
Lenovo237XB-GDJ7B-MV8MH-98QJM-24367

https://github.com/DavidWuibaille/Repository/tree/main/Windows/Windows7/OEMCert

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")
}

https://github.com/DavidWuibaille/Repository/tree/main/Windows/Windows11/OEMactivation


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.