Petit script powershell pour l’activation d’un poste avec sa licence native Windows 10 OEM.
IL faudra bien sur une connexion internet pour que l’activation fonctionne
cscript c:\Windows\System32\slmgr.vbs -upk $key = (Get-CimInstance -Query 'select * from SoftwareLicensingService').OA3xOriginalProductKey cscript c:\Windows\System32\slmgr.vbs -ipk $key cscript c:\Windows\System32\slmgr.vbs -ato Write-Output ----------------------------- Write-Output ' Votre Clef OEM ' Write-Output $key Write-Output ----------------------------- $key | Out-file serials.txt Invoke-Expression serials.txt slui.exe