Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
i want to check my operating system is activated or not using c#.
Please help
TIA

What I have tried:

i tried using WMI queries but again it will depend on os version.
i want to write method for all operating system
Posted
Updated 17-Nov-17 11:36am

1 solution

Why? Windows can do that for you...

Here are several different ways of doing it: Check if Windows 10 is activated - gHacks Tech News[^]

However, if you need to write code to do it, then this Google Search has many answers for you: c# check windows activation[^]

This was found using the above search: c# - Programmatically check whether Windows 7 is activated - Stack Overflow[^] - again,. pick the solution that suits you best.
 
Share this answer
 
Comments
sumitk.cadc 20-Nov-17 3:41am    
sir ,
i want to check this using c# code.
Thanks
Graeme_Grant 20-Nov-17 4:01am    
There is a link there for you with a bunch of solutions...

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