mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-18 08:30:00 +02:00
Updated the manuals
This commit is contained in:
@@ -24,7 +24,7 @@ Script Content
|
||||
This PowerShell script queries pending operating system reboots and prints it.
|
||||
.EXAMPLE
|
||||
./check-pending-reboot.ps1
|
||||
✅ No pending reboot
|
||||
✅ No pending reboot.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -41,7 +41,7 @@ function Test-RegistryValue { param([parameter(Mandatory=$true)][ValidateNotNull
|
||||
}
|
||||
|
||||
try {
|
||||
$reply = "✅ No pending reboot"
|
||||
[string]$reply = "✅ No pending reboot."
|
||||
if ($IsLinux) {
|
||||
if (Test-Path "/var/run/reboot-required") {
|
||||
$reply = "⚠️ Pending reboot (found: /var/run/reboot-required)"
|
||||
@@ -79,7 +79,7 @@ try {
|
||||
$reason += ", '...\CurrentControlSet\Services\Netlogon' with 'AvoidSpnSet'"
|
||||
}
|
||||
if ($reason -ne "") {
|
||||
$reply = "⚠️ Pending reboot (registry got $($reason.substring(2)))"
|
||||
$reply = "⚠️ Pending reboot (found: $($reason.substring(2)) in registry)"
|
||||
}
|
||||
}
|
||||
Write-Host $reply
|
||||
@@ -90,4 +90,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||
|
Reference in New Issue
Block a user