jeffg Posted July 29, 2008 Report Share Posted July 29, 2008 I cannot get my refresh to work properly in the script below. I pull the data ok but it never refreshes. I have tried putting the refresh a couple places with no luck. anythoughts? $computer = "." $namespace = "root\CIMV2" $val1 =Get-WmiObject win32_Processor -computername $computer|%{$_.loadpercentage}$val2=Get-WmiObject -class Win32_PerfFormattedData_Tcpip_NetworkInterface -computername $computer -namespace $namespace -filter "name='Broadcom NetXtreme 57xx Gigabit Controller'" |%{$_.BytesTotalPersec /125000} out-gauge Quote Link to comment Share on other sites More sharing options...
marco.shaw Posted August 7, 2008 Report Share Posted August 7, 2008 Check out my blog postings to see how you need to implement a script to get a refresh value: http://community.softwarefx.com/blogs/powergadgets_guest_blog/archive/tags/guest+blogger/default.aspx Now, you're looking at trying to read 2 values into out-gauge, so you'll actually need to create a more complicated object with your .ps1 script. Let me know if you're still interested. Sorry for the delay in replying... Marco 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.