Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:23:17+00:00 2026-06-08T18:23:17+00:00

I am running this Powershell command: Get-counter -Counter \Processor(_Total)\% Processor Time –Continuous Which I

  • 0

I am running this Powershell command:

Get-counter -Counter “\Processor(_Total)\% Processor Time” –Continuous

Which I found on http://technet.microsoft.com/en-us/magazine/ee872428.aspx

I am using it to monitor the CPU, but about a minute after running it this error occurred (which causes it to halt):

Get-Counter : A counter with a negative denominator value was detected.
At line:1 char:12
+ Get-counter <<<<  -Counter "\Processor(_Total)\% Processor Time" -Continuous
    + CategoryInfo          : InvalidResult: (:) [Get-Counter], Exception
    + FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand

What caused this to occur? What can I do to prevent this, so the command doesn’t abort like so (like suppressing errors)?

I’m unable to reproduce this on a regular basis though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:23:18+00:00Added an answer on June 8, 2026 at 6:23 pm

    It would seem other people have the same issue if your code looks like the examples in this link . It might be a problem with your environment though. Does this happen on every pc you own ?

    The powershell guys also seems to have some info that should help you sort this out Powershell guy’s blog. He basically just adds this command -EA silentlycontinue and imports the counter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When running this powershell command Get-ChildItem -Recurse -Include *.txt You get multiple tables in
I am running the following command: ([xml](new-object net.webclient).DownloadString( http://blogs.msdn.com/powershell/rss.aspx )).rss.channel.item | format-table title,link The
I'm running msbuild.exe via Rake from a regular PowerShell console. This is the command
Running this query takes a long time: SELECT host,ip FROM arecords WHERE ip IN
Try running this in a .VBS file MsgBox(545.14-544.94) You get a neat little answer
In running this on index.html, I get the following error: Uncaught SyntaxError: Unexpected token
I asked this on ServerFault, but didn't get any reply's, I know it's command
Running this program is printing forked! 7 times. Can someone explain how forked! is
When running this XNA application it should display a rotated rectangle that moves from
After running this query statement with my database: select * from articles where content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.