Table des matières

Activer Windows et Office avec une clé et un serveur KMS

Résumé de la page https://github.com/SystemRage/py-kms/wiki/Manual#slmgr-and-ospp-commands

Windows

(administrator powershell command prompt)

c:\> runas /user:domain\administrator powershell
PS>  .\cscript.exe //b .\slmgr.vbs /skms 192.168.X.X

(if local admin)

c:\> slmgr /skms mykmsserver.acme.corp
c:\> slmgr /ato

Change/add key to Windows (key available on https://github.com/SystemRage/py-kms/wiki/Windows-GVLK-Keys or technet, see py-kms page)

c:\> slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
c:\> slmgr /ato

Office

(administrator command prompt, initial path depend to Office version)

c:\> cd %installdir%\Program Files (x86)\Microsoft Office\Office1x
c:\> cscript ospp.vbs /sethst:mykmsserver.acme.corp
c:\> cscript ospp.vbs /act

Change/add key to Office (key available on https://github.com/SystemRage/py-kms/wiki/Office-GVLK-Keys or technet, see py-kms page)

c:\> cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
c:\> cscript ospp.vbs /act