netinvent / windows_tools

Collection of various interfaces for Windows functionality in a Pythonic way
BSD 3-Clause "New" or "Revised" License
63 stars 15 forks source link

Product key #4

Closed 404Ako closed 1 year ago

404Ako commented 2 years ago

i wanted to use your imports but how do i grab the windows product key? You left no docs for it

deajan commented 2 years ago

Hello,

Sorry for the docs, it's a work in progress. If you're searching for the function calls, you can look at the tests directory.

In the meantime, here's a quick todo

pip install windows_tools.product_key

Usage

There are two ways to get the product key:

prod_key = get_windows_product_key_from_wmi() prod_key = get_windows_product_key_from_reg()