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#.
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.
Open PowerShell or the Command Prompt and type in: slmgr /xpr to see your activation status. Press Enter.
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.
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.
The Software Licensing API - SLIAPI, take at look at SLIsGenuineLocal()
. (Replaces LegitCheck
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With