VMware {code} Community
Manuzee
Contributor
Contributor

APIs to get Windows Product Key from Windows Virtual Machine

hi,

I just wanted to know the API to get information about product key / serial key of Windows Guest OS running as Virtual Machine?

Thanks,

Manu

Reply
0 Kudos
1 Reply
AlexVas
Contributor
Contributor

(1) You can get it from the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId

(2) Or you can get it via WMI. http://msdn.microsoft.com/en-us/library/cc534596(VS.85).aspx

See this VBS as an example:

c:\>slmgr.vbs -dli

It is in your %SYSTEM32% directory.

Hope this will help,

Alex

Reply
0 Kudos