Performance Monitor

  • Thread starter Thread starter MJA
  • Start date Start date
M

MJA

I have a Windows 2000 Server which I want to monitor Free
Disk space.

When I opened performance from the Administrative Tools
and Select Add, I get the Add Counters screen but the
Performance Counter drop-box is greyed out and there is
nothing in there. THere are also no Counters in the list.

How do I enable the Performance objects?
 
Hi,

You could run wmi script to monitor.

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set colDrives = objFSO.Drives
For Each objDrive in colDrives
If objDrive.IsReady = True Then
Wscript.Echo "Drive letter: " &
objDrive.DriveLetter
Wscript.Echo "Free space: " & objDrive.FreeSpace
Else
Wscript.Echo "Drive letter: " &
objDrive.DriveLetter
End If
Next
 
Back
Top