Performance Monitor

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?
 
E

Eric Dai C

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top