Feature request - Pending reboot check step

1

Hello,

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.

Cancel
login to comment
2

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!

Cancel
login to comment

0

Like this idea.

Cancel
login to comment

Reply