From d12396a8c8ff88ebfe085dbc27d21c18a0b7cab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=20M=C3=A4ki?= Date: Tue, 12 Nov 2024 16:43:09 +0200 Subject: [PATCH] Fix reboot check in Install-Software --- Install-Software.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Install-Software.ps1 b/Install-Software.ps1 index 3ca67a2..beb9ad9 100644 --- a/Install-Software.ps1 +++ b/Install-Software.ps1 @@ -816,7 +816,7 @@ if ($OtherSelected.Count) { Show-Output "No other operations were selected." } -if ((Test-CommandExists "Test-PendingReboot") -and (Test-PendingReboot -SkipConfigurationManagerClientCheck -SkipPendingFileRenameOperationsCheck).IsRebootPending) { +if (Test-RebootPending) { Show-Output -ForegroundColor Cyan "The computer is pending a reboot. Please reboot the computer." } Show-Output -ForegroundColor Green "The installation script is ready. You can now close this window."