mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-26 01:43:37 +01:00
Update check-pending-reboot.ps1
This commit is contained in:
parent
b56bcbcecd
commit
beafdaa629
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user