mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 15:33:15 +01:00
Updated check-uptime.ps1
This commit is contained in:
parent
3429ed7d90
commit
83d8d645ee
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user