Jump to content
Software FX Community

refresh not working


Recommended Posts

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 = "."


= "root\CIMV2"


=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}


Link to comment
Share on other sites

  • 2 weeks later...

Check out my blog postings to see how you need to implement a script to get a refresh value:


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...


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.

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...