Page 1 sur 1

Activation Windows licence OEM

Publié : 22 sept. 2021 - 17:56
par Tim
Bonjour,
je partage avec vous un petit script pour l'activation des licences OEM sur windows :

Code : Tout sélectionner

# -- coding: utf-8 --
import time
from setuphelpers import *

uninstallkey = []

def install():
    # commande powershell/cmd changement de clef windows + ajout de clef oem
    key = run(r'''powershell $oem=(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey; echo $oem;''')
    run(r'changepk /productkey {}'.format(key))
    print("Windows Activation key : "+key)

Re: Activation Windows licence OEM

Publié : 24 mai 2022 - 12:04
par smandel
Au top 👍