How to programmatically distinguish between LTSC & GA versions of Windows 10 21H2

Reshma Raveendran 20 Reputation points
2024-10-14T13:36:35.0066667+00:00

In .Net how to programmatically check if the windows version is running Windows 10 21H2 LTSC or GA. As far as I understand, they are both using the same build 19044 and the only difference seems to be the product name in the registry @ HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProductName where "LTSC" appears in the value for LTSC and its not present in GA.

Is there another way to distinguish between the 2

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,911 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 32,056 Reputation points Microsoft Vendor
    2024-10-14T14:52:50.7766667+00:00

    Hi @Reshma Raveendran ,

    You can also check the HKLM\Software\Microsoft\Windows NT\CurrentVersion\EditionID in the Registry.

    The EditionID can differentiate between Enterprise LTSC and other editions.

    • Windows 10 Pro - Professional
    • Windows 10 Pro for Workstations - ProfessionalWorkstation
    • Windows 10 Education - Education
    • Windows 10 Pro Education - ProfessionalEducation
    • Windows 10 Enterprise - Enterprise
    • Windows 10 Enterprise 2019 LTS/LTSC/LTSB - EnterpriseS
    • Windows 10 Home - Home

    Best Regards.

    Jiachen Li


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.