S
S
Studentka19962019-08-22 14:09:18
Python
Studentka1996, 2019-08-22 14:09:18

How to display Windows/Office activation information?

Good afternoon everyone. Experience in development 0. Less than a month familiar with Python, reading documentation, books, trying to program something in parallel).. Version 3.6.
I ran into a problem how to display the activation info: key, name, status, expiration date? cmd using slmgr /?
Please tell me how it is reasonable to implement it in a Python script so that it works not for a specific version of Windows, but for all (fresh ones). Thanks in advance. If there are other methods for solving this problem, I will be glad to read it)) 

Answer the question

In order to leave comments, you need to log in

1 answer(s)
2
20ivs, 2019-08-22
@20ivs

run cscript slmgr.vbs -xprand use the output already in Python for its intended purpose.
This will only work for everyone if Python is pre-installed on Windows. if you need it to work without prior preparation, then use native Windows tools. PowerShell, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question