Win32_Processor (WMI class) and Vista
-
Wednesday, August 08, 2007 3:14 PM
Hi,
It appears that some functionalities of the Win32_Processor class doesn't work with Vista.
I mean, I don't understand why the property LoadPercentage send back 'None' whereas all is OK with Windows XP.
Perhaps it misses a package on my computer of sthing like that? I don't think because some properties works...
Thx for your answers.
All Replies
-
Wednesday, August 08, 2007 4:24 PM
I mean: (Python script)
objProc = GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'")
objProc.name is OK
objProc.LoadPercentage returns None
However the following link http://msdn2.microsoft.com/en-US/library/aa394373.aspx claims it should work with Vista...
-
Wednesday, September 26, 2007 11:51 PM
I have no problem executing such code in C# but you might try the same and run it as administrator and see if that makes a diff.
Does other wmi properties for that win32_processor have correct values when running your script?
-
Thursday, October 04, 2007 8:45 PM
Closed as no repro.
-
Monday, December 17, 2007 12:01 PM
I am trying the Same method but load percentage is showing null.
I have checked it on Vista as well as WinPE2.1
Is there any other method we can implement?
-
Monday, September 28, 2009 4:27 PMSame here, Win32_Processor.LoadPercentage is null when being pulled remotely .
Local performance is showing up.
All other options are there, both locally and remotely.
Target servers - Windows 2008 x64, Windows 2008 x64 R2.
Source servers - Windows 7 x86, Windows 2003 R2.
Note: everything works if Source is a local admin on Target, but I want it to work with WMI and DCOM permissions only. Possible?- Edited by Neolisk Monday, September 28, 2009 4:30 PM added more information
-
Friday, February 18, 2011 11:04 AMwhat is a 'repro'?
-
Monday, March 26, 2012 12:19 PM
I am having the same problem.
When pulling the LoadPercentage from Win32_Processor it returns null.
When i am looking inside the WMI (wbemtest) the Instance CPU0 is also returning null at LoadPercentage. In this case i am running Windows 7 Professional 64-Bit. This is only on my PC. When i look at a testing machine it returns a valid value between 0 and 100.
This is a business machine at my work. and whe are using monitoring software to monitor the CPU usage and disk usage of all machines at my work and at customer sites.
Edit:
Oké i fixed the issue with the folowing command:
lodctr /r


