Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been trying to display the Edition of Windows 10 in my application. For example Windows 10 Home, Professional, Enterprise and Education.

The closest I have gotten is with Windows 10 Enterprise, code displayed bellow which yes is a edition of Windows but its stating that on Windows 10 Professional.

Thanks in advance.

What I have tried:

<pre lang="VB"><pre>lblWindowsVersion.Text = "Windows Version: " & My.Computer.Info.OSVersion

Displays the version e.g. 10.0.21364.0

VB
Dim WinEdition As String = Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion", "ProductName", Nothing)

Displays Windows 10 Enterprise on all devices for some strange reason.

VB
Dim WinEdition4 As String = My.Computer.Info.OSFullName

Displays Microsoft Windows 10.0.21364
Posted
Updated 28-Apr-21 19:45pm
Comments
Richard MacCutchan 29-Apr-21 3:30am    
On my system (64 bit Home edition) there seems to be more information in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Richard MacCutchan 29-Apr-21 3:31am    
I have deleted your duplicate of this question. Please do not repost.
Richard Deeming 29-Apr-21 3:36am    
Have you tried looking at the EditionID value from the Windows NT\CurrentVersion key?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900