mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-16 09:50:02 +01:00
Updated check-uptime.ps1
This commit is contained in:
parent
3429ed7d90
commit
83d8d645ee
@ -84,7 +84,7 @@ try {
|
|||||||
}
|
}
|
||||||
if ($reason -ne "") {
|
if ($reason -ne "") {
|
||||||
$status = "⚠️ "
|
$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"
|
Write-Host "$status $(hostname) is up for $(TimeSpanAsString $uptime) since $($lastBootTime.ToShortDateString()) $pending"
|
||||||
|
Loading…
Reference in New Issue
Block a user