WMI win32_windowsproductactivation code not working


S

sl

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.
 
Ad

Advertisements

V

Volodymyr Shcherbyna

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.
It seems like this class is not implemented in Windows 7. Try to use
wmiexporer and browse this class. Does it work for you?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top