Updated check-uptime.ps1

This commit is contained in:
Markus Fleschutz 2024-10-10 19:39:00 +02:00
parent 3429ed7d90
commit 83d8d645ee

View File

@ -84,7 +84,7 @@ try {
}
if ($reason -ne "") {
$status = "⚠️ "
$pending = "with pending reboot (registry got $($reason.substring(2)))"
$pending = "with pending reboot ($($reason.substring(2)) in registry)"
}
}
Write-Host "$status $(hostname) is up for $(TimeSpanAsString $uptime) since $($lastBootTime.ToShortDateString()) $pending"