Pickle
Pickle

Reputation: 1124

win32_processor.LoadPercentage null?

I'm trying to get the current CPU load on my server by using

get-wmiobject win32_processor | select LoadPercentage

This works fine on my desktop and other servers, but it returns blank on this server.

The server is using Powershell v4.

Upvotes: 1

Views: 1060

Answers (1)

StephenP
StephenP

Reputation: 4081

You may want to rebuild the performance counters with lodctr /r. Please read and understand the documentation as this will reset all performance counters. I would strongly recommend backing up your settings with lodctr /s:[filename] first.

Upvotes: 1

Related Questions