why does Win32_LogicalDisk return nothing for Status

T

Tim_Mac

hi,
i am trying to find a script to tell me if there are problems with
either of my disks, which are configured as software raid 1 in windows
server 2003.

i looked in the SDK and found the Win32_LogicalDisk.Status property,
but it returns nothing when i run it. the other properties appear to
work fine.
any ideas?
thanks
tim

Set objWMI = Getobject("winmgmts:root/cimv2").ExecQuery("select * from
Win32_LogicalDisk where drivetype = 3")
For Each objDisk In objWMI
wscript.echo objDisk.Caption & " - " & objDisk.Status
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