I'm a little new to vbscript and I'm trying to get this to work. Can anyone shed any light?!
I want to end up putting win2k performance counter stats into a csv file.
Many Thanks!
Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell"
oShell.Run "Winmgmt /resyncperf"
For each Process in GetObject("winmgmts:{impersonationLevel=impersonate}!\\localhost\root\default".InstancesOf ("Win32Perf_RawTCP"
WScript.Echo Process.ConnectionsEstablished
WScript.Echo Process.SegmentsPerSec
Next
I want to end up putting win2k performance counter stats into a csv file.
Many Thanks!
Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell"
oShell.Run "Winmgmt /resyncperf"
For each Process in GetObject("winmgmts:{impersonationLevel=impersonate}!\\localhost\root\default".InstancesOf ("Win32Perf_RawTCP"
WScript.Echo Process.ConnectionsEstablished
WScript.Echo Process.SegmentsPerSec
Next