Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Some help

Status
Not open for further replies.

MadMattF

Technical User
Aug 3, 2001
2
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top