From dc2fee91e3b327597b572ceea4d9141b0a282941 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 8 Nov 2022 21:06:30 +0100 Subject: [PATCH] Update check-pending-reboot.ps1 --- Scripts/check-pending-reboot.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/check-pending-reboot.ps1 b/Scripts/check-pending-reboot.ps1 index 6be41ffa..cde3b1b2 100644 --- a/Scripts/check-pending-reboot.ps1 +++ b/Scripts/check-pending-reboot.ps1 @@ -23,22 +23,22 @@ function Test-RegistryValue { param([parameter(Mandatory=$true)][ValidateNotNull $Reason = "" if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired") { - $Reason += ", found registry entry: '...\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'" + $Reason += ", found registry entry '...\WindowsUpdate\Auto Update\RebootRequired'" } if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\PostRebootReporting") { - $Reason += ", found registry entry: '...\Windows\CurrentVersion\WindowsUpdate\Auto Update\PostRebootReporting'" + $Reason += ", found registry entry '...\WindowsUpdate\Auto Update\PostRebootReporting'" } if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending") { - $Reason += ", found registry entry: '...\Windows\CurrentVersion\Component Based Servicing\RebootPending'" + $Reason += ", found registry entry '...\Component Based Servicing\RebootPending'" } if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\ServerManager\CurrentRebootAttempts") { - $Reason += ", found registry entry: '...\Microsoft\ServerManager\CurrentRebootAttempts'" + $Reason += ", found registry entry '...\ServerManager\CurrentRebootAttempts'" } if (Test-RegistryValue -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing" -Value "RebootInProgress") { - $Reason += ", found registry entry: '...\Windows\CurrentVersion\Component Based Servicing' with 'RebootInProgress'" + $Reason += ", found registry entry '...\CurrentVersion\Component Based Servicing' with 'RebootInProgress'" } if (Test-RegistryValue -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing" -Value "PackagesPending") { - $Reason += ", found registry entry: '...\Windows\CurrentVersion\Component Based Servicing' with 'PackagesPending'" + $Reason += ", found registry entry '...\CurrentVersion\Component Based Servicing' with 'PackagesPending'" } #if (Test-RegistryValue -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Value "PendingFileRenameOperations") { # $Reason += ", found registry entry '...\CurrentControlSet\Control\Session Manager' with 'PendingFileRenameOperations'"