Update check-pending-reboot.ps1

This commit is contained in:
Markus Fleschutz 2024-01-19 16:08:47 +01:00
parent b56bcbcecd
commit beafdaa629

View File

@ -5,7 +5,7 @@
This PowerShell script queries pending operating system reboots and prints it. This PowerShell script queries pending operating system reboots and prints it.
.EXAMPLE .EXAMPLE
./check-pending-reboot.ps1 ./check-pending-reboot.ps1
No pending reboot No pending system reboot
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -64,7 +64,7 @@ try {
} }
} }
if ($Reason -eq "") { if ($Reason -eq "") {
Write-Host "✅ No pending reboot" Write-Host "✅ No pending system reboot"
} }
exit 0 # success exit 0 # success
} catch { } catch {