Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically check whether Windows 7 is activated

Background: I am creating system images that will be loaded onto several workstations. Windows activation will occur after the images are loaded onto the workstation. These computers will not be connected to the Internet and will be activated over the phone.

Question: I would like to check programmatically if Windows 7 is activated or not, so that our software will not run if Windows 7 is not activated. Our software is written in C#.

like image 730
Ryan R Avatar asked May 02 '11 15:05

Ryan R


People also ask

How do you check if Windows 7 has been activated?

Simply hold down the Windows key on your keyboard and press the BREAK key to open the View Basic Information About Your System page of the System utility in Control Panel. Then scroll to the bottom of this page and view the activation info displayed there.

How can I tell if Windows is activated through CMD?

Open PowerShell or the Command Prompt and type in: slmgr /xpr to see your activation status. Press Enter.

How do I know if Windows is activated?

Checking your activation status To check activation status in Windows 10, select the Start button, and then select Settings > Update & Security and then select Activation . Your activation status will be listed next to Activation. You are activated.

How can I tell if Windows is activated PowerShell?

Another method that works in all modern versions of Windows is to check whether your Windows is activated from the Command Prompt or PowerShell. Launch the Command Prompt or PowerShell and type the command "slmgr /xpr." Press Enter and you should see a prompt saying whether your Windows machine is activated or not.


1 Answers

The Software Licensing API - SLIAPI, take at look at SLIsGenuineLocal(). (Replaces LegitCheck)

like image 185
Alex K. Avatar answered Oct 08 '22 11:10

Alex K.