Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Windows Edition

Tags:

c#

.net

windows

Is there any easy way to get Windows Edition (Home, Professional, etc.)?

like image 897
SiberianGuy Avatar asked Dec 10 '10 04:12

SiberianGuy


1 Answers

Easy answer? Just look in the registry.

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion

It doesn't have the overhead of WMI (50ms every call), and it gives the full name.

like image 56
Sophit Avatar answered Nov 07 '22 17:11

Sophit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!