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