raid_check.bat
SET "TMPFILE=c:\raidcheck.txt"
SET "RAID_FEHLER=NEIN"
SET "RAID_NAME="
 
if exist %TMPFILE% del /q %TMPFILE%
for /f "delims=#" %%a in ('echo list vol ^|diskpart ^|find /i "Spiegelung"') do (
 	echo %%a >> %TMPFILE%
)
for /f "tokens=2-12 delims= " %%b  in (%TMPFILE%) do (
	if not "%%h" == "Fehlerfre" (
		SET "RAID_FEHLER=JA"
		SET "RAID_NAME=%RAID_NAME%%%c,"
	)
)
 
if "%RAID_FEHLER%" == "JA" (
	echo Partition/Volume %RAID_NAME:~0,-1% hat ein Fehler im RAID-System
	pause
)
if exist %TMPFILE% del /q %TMPFILE%