Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Feature request - Pending reboot check step


could you implement "Pending reboot" check step into PDQ Deploy? A lot of SW is unable to install if there is pending reboot flag in Windows OS and it just ends up failing. It would be nice to have an opportunity to stop deployment if there is active pending reboot flag (there are many opportunities when it comes up handy).

Thank you very much.



Date Votes
  • Like this idea.

  • Every package or step you create, put under Conditions > PDQ Inventory Collection > Is Not A Member > "Reboot Required"

    Its a PDQ Inventory built-in collection or create yourself "Computer > Needs Reboot > Is True"

    Or default powershell step in Deploy (successcode 0 and stop deploy with error):

    $WindowsUpdateRebootRequired = $false
    #Check Windows Update
    if (Test-Path "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired")
        $key = Get-Item "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired"
        if($key -ne $null) 
            $WindowsUpdateRebootRequired = $true
    if ($WindowsUpdateRebootRequired -eq $true)
        Write-Output "There is a pending reboot"
        exit 1 #there is a reboot pending

    Have phun!