Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6753379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:09:15+00:00 2026-05-26T13:09:15+00:00

Anyone know how to determine the Windows Edition ?? E.g. for both 32bit and

  • 0

Anyone know how to determine the Windows Edition ??

E.g. for both 32bit and 64bit of Windows:
– Windows XP Home/Professional
– Windows Vista Business/Ultimate…etc
– Windows 7 Home Basic/Home Premium/Professional/Ultimate…etc

I wonder if could retrieve this info from registry or Python API ??

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:09:16+00:00Added an answer on May 26, 2026 at 1:09 pm

    If ctypes doesn’t work (due to 32 vs 64 bits?), this hack should:

    def get_Windows_name():
        import subprocess, re
        o = subprocess.Popen('systeminfo', stdout=subprocess.PIPE).communicate()[0]
        try: o = str(o, "latin-1")  # Python 3+
        except: pass  
        return re.search("OS Name:\s*(.*)", o).group(1).strip()
    
    print(get_Windows_name())
    

    Or just read the registry:

    try: import winreg
    except: import _winreg as winreg
    with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion") as key:
        print(winreg.QueryValueEx(key, "EditionID")[0])
    

    Or use this:

    from win32com.client import GetObject
    wim = GetObject('winmgmts:')
    print([o.Caption for o in wim.ExecQuery("Select * from Win32_OperatingSystem")][0])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how to determine the security mode (Mixed Mode or Windows Authentication)
Does anyone know an elegant way to determine System Load preferably using Windows performance
Does anyone know how to determine the active network type at the specific moment:
Does anyone know a way to determine if a Rails association has been eager
Does anyone know of a method to determine when a file copy completes in
Does anyone know if it is possible to reliably determine (programattically C/C++...) whether or
Does anyone know where I can find an example of how to determine if
Does anyone know how I can determine if an application is able to accept
Does anyone know how best to determine the specific underlying cause of this exception?
Anyone know how to determine if a particular plugin is installed on a user's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.