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