I am trying to create a script to monitor the status of a RAID 1
(mirrored) volume.
I want to know when there is a problem with the mirror so that I can
take appropriate action, but can't find any WMI classes that report
this info (such as that shown in disk management)
Any help greatly appreciated
Regards
Jon
Reply
Just run diskpart from a cmd prompt and use a script to catch and
process the output
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status
Info
---------- --- ----------- ----- ---------- ------- ---------
--------
Volume 0 D Images NTFS Mirror 128 GB Healthy
Pagefile
Volume 1 E CD-ROM 0 B
Volume 2 C NTFS Partition 19 GB Healthy
System
DISKPART> quit