Update the check-*.ps1 scripts

This commit is contained in:
Markus Fleschutz
2022-11-28 09:13:01 +01:00
parent 123494e015
commit cbf046ba3e
8 changed files with 22 additions and 18 deletions

View File

@ -41,13 +41,13 @@ try {
[int64]$Total = ($Used + $Free)
if ($Total -eq 0) {
"✅ Drive $ID is empty."
"✅ Drive $ID is empty"
} elseif ($Free -lt $MinLevel) {
"⚠️ Drive $ID has only $(Bytes2String $Free) of $(Bytes2String $Total) left to use!"
} elseif ($Used -lt $Free) {
"✅ Drive $ID uses $(Bytes2String $Used) of $(Bytes2String $Total)."
"✅ Drive $ID uses $(Bytes2String $Used) of $(Bytes2String $Total)"
} else {
"✅ Drive $ID has $(Bytes2String $Free) of $(Bytes2String $Total) left."
"✅ Drive $ID has $(Bytes2String $Free) of $(Bytes2String $Total) left to use"
}
}
exit 0 # success