richml Posted February 1, 2007 Report Share Posted February 1, 2007 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. Quote Link to comment Share on other sites More sharing options...
IGSFX Posted February 1, 2007 Report Share Posted February 1, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.