Improve the scripts

This commit is contained in:
Markus Fleschutz
2021-03-20 16:32:26 +01:00
parent 6a0e3eb002
commit 424629ef94
3 changed files with 25 additions and 24 deletions

View File

@ -22,7 +22,7 @@ try {
write-warning "Drive $Drive has only $Free GB left to use! ($Used GB out of $Total GB in use, minimum is $MinLevel GB)"
exit 1
}
write-host -foregroundColor green "OK - drive $Drive has $Free GB left ($Used GB of $Total GB used, $MinLevel GB is minimum)"
write-host -foregroundColor green "OK - drive $Drive has $Free GB left ($Used GB of $Total GB used)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"