Jump to content
Software FX Community

out-chart hanging powershell.exe


richml

Recommended Posts

Hello,

 I'm trying to use the following code, but it causes powershell.exe to hang...

 

$myblock ={   $procs = get-wmiobject -class Win32_PerfFormattedData_PerfOS_Processor -computer localhost     foreach ($proc in $procs)   {     $procName = $proc.Name     $procUse  = $proc.PercentProcessorTime     $procObject = new-object object     add-member -inputobject $procObject -membertype NoteProperty -Name Name -Value $procName     add-member -inputobject $procObject -membertype NoteProperty -Name Used -Value $procUse     #$proc.Name + "," + $proc.PercentProcessorTime     write-output $procObject   }}&$myblock | out-chart -values Used -label Name -AxisY_LabelsFormat_Format Percentage -AxisY_Max 1 -title "Processor Usage"

 

I'm trying to create a chart that scrolls from right to left with processor use information.

 Thanks for any hints. 

Link to comment
Share on other sites

We detected an issue which caused PowerShell to hang under certain circumstances. The issue has been fixed and a new public build is already available. Please download the latest version from www.powergadgets.com/trial. Make sure you uninstall your current version before installing the new build.

 We apologize for any inconvenience this may have caused you.

IvanG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...