Page 1 of 1

[SOLVED] Recovering Windows version

Published: Dec 5, 2024 - 4:56 PM
by Mugit
Good morning,

I would like to know how to retrieve the Windows version that is in host_info -> os_name "Windows 11 Pro"

I tried some commands:

Code: Select all

    
    print( get_os_name() )
    print( get_os_version() )
But I get this in return:

Windows
10.0.26100

Thanks in advance

Sincerely,
Brice

###############################

- WAPT version installed: 2.5.5
- Linux server OS and Debian version
- Operating system of the administration machine/Windows 11 package creation

Re: Recovering Windows version

Published: Dec 5, 2024 - 5:02 PM
by jlepiquet
Hello Brice,

You can use the following command:

Code: Select all

print( host_info()["os_name"])
Sincerely,

Re: Recovering Windows version

Published: Dec 5, 2024 - 5:18 PM
by Mugit
Perfect

thank you.

Sincerely,
Brice

################################

- WAPT version installed: 2.5.5
- Server OS: Linux and Debian version
- Administration/package creation machine OS: Windows 11