Add check-ping.ps1

This commit is contained in:
Markus Fleschutz
2021-03-30 09:06:30 +02:00
parent 3a0daeb85a
commit 67f114831d
6 changed files with 35 additions and 2 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)"
write-host -foregroundColor green "OK - $Free GB left on drive $Drive ($Used GB of $Total GB used)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"