Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WMI win32_windowsproductactivation code not working

108 views
Skip to first unread message

sl

unread,
Jun 7, 2010, 6:10:03 AM6/7/10
to
Hi,

I m trying to run the following C# code.

ManagementClass mc = new
ManagementClass("Win32_WindowsProductActivation", new
ObjectGetOptions());

ManagementBaseObject outParams =
mc.InvokeMethod("GetInstallationID", null, null);


But it is throwing exception as "Invalid Method Parameter(s)".
Please help.

Volodymyr Shcherbyna

unread,
Jun 30, 2010, 9:00:47 AM6/30/10
to

It seems like this class is not implemented in Windows 7. Try to use
wmiexporer and browse this class. Does it work for you?

0 new messages