Skip to content

Commit

Permalink
Fix reboot check in Install-Software
Browse files Browse the repository at this point in the history
  • Loading branch information
AgenttiX committed Nov 12, 2024
1 parent 963be16 commit d12396a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Install-Software.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit d12396a

Please sign in to comment.