Is there a specific registry key that I can check to see if Windows has been activated?

Joseph Douso 1 Reputation point
2022-02-14T18:57:07.71+00:00

I want to specifically look into the registry on any box (either workstation or server), and be able to tell by looking at one registry key that the OS is activated.
 
I don’t want to run slmgr.vbs, I don’t want to go into the control panel, I don’t want to going into the windows settings, I want to go into the registry to confirm that the OS is activated.
In addition to this I would also like to capture the following in the registry as well:
What KMS host is the box pointed to? (I believe KeyManagementServiceName located here "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" is the correct one to look at for this, but i have seen in the slmgr.vbs /dlv output that two names can exist but i only see one in the registry)

Why?
In my work environment, I'm having a some KMS challenges and I want to see how many boxes are impacted by these challenges. This will be accomplished by using third party software that can read the registry on each box and produce a report.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,946 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,468 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 84,546 Reputation points
    2022-02-14T20:08:15.257+00:00

    This will be accomplished by using third party software

    If you want to do it programmatically, you can use IEditionUpgradeHelper::GetGenuineLocalStatus
    (tested on Windows 10)

    0 comments No comments

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.