C
christophe roumegous
Hello,
I just want to know the key (licence number) of the operating system used by
my computer.
Then I use the WMI API in C#.
I tried to used the classes :
"Win32_OperatingSystem"
"Win32_ComputerSystemProduct"
For the "Win32_OperatingSystem" class I used the SerialNumber member.
However it gives a number like "10497-OEM-0031416-71674" which is not what I
need.
For the "Win32_ComputerSystemProduct" class I used "IdentifyingNumber" which
give me nothing
but the string: "System Serial Number" and "UUID".
"UUID" gives me 5 groups of numbers seperated by "-". Just like a Windows
serial key.
However, the key I need is the one you have to enter to install your Windows
XP. This key (mine in fact) has numbers and letters (5 groups of 5 letters
or numbers).
I do not want to find the license key of my OS since I allready have it.
(Please do not answer: "xxxxxx.exe is a program that can do it"). It is for
a C# application that identifies computers to be maintained.
Thanks, Christophe.
I just want to know the key (licence number) of the operating system used by
my computer.
Then I use the WMI API in C#.
I tried to used the classes :
"Win32_OperatingSystem"
"Win32_ComputerSystemProduct"
For the "Win32_OperatingSystem" class I used the SerialNumber member.
However it gives a number like "10497-OEM-0031416-71674" which is not what I
need.
For the "Win32_ComputerSystemProduct" class I used "IdentifyingNumber" which
give me nothing
but the string: "System Serial Number" and "UUID".
"UUID" gives me 5 groups of numbers seperated by "-". Just like a Windows
serial key.
However, the key I need is the one you have to enter to install your Windows
XP. This key (mine in fact) has numbers and letters (5 groups of 5 letters
or numbers).
I do not want to find the license key of my OS since I allready have it.
(Please do not answer: "xxxxxx.exe is a program that can do it"). It is for
a C# application that identifies computers to be maintained.
Thanks, Christophe.