AllowRebootPassThrough

Can someone explain this variable to me? The guide seems to contradict itself.

According to the guide
-AllowRebootPassThru $true | $false (default is false)

Specify whether to allow the 3010 exit code (reboot required) to be passed back to the parent process (e.g. SCCM) if detected during an installation. If a 3010 code is passed to SCCM, the SCCM client will display a reboot prompt. If set to false, the 3010 return code will be replaced by a “0” (successful, no restart required).

example
Deploy-Application.exe -AllowRebootPassThru

Deploy an application for installation, suppressing the PowerShell console window and allowing reboot codes to be returned to the parent process.

Can you point out where the guide contradicts the above information you posted?

What does “Deploy-Application.exe -AllowRebootPassThru” do? Default value is false, correct? The instructions state “If set to false, the 3010 return code will be replaced by a “0” (successful, no restart required).”

Re-awaken old threads much?! lol

-AllowRebootPassThru $true | $false (default is false)

Specify whether to allow the 3010 exit code (reboot required) to be passed back to the parent process (e.g. SCCM) if detected during an installation. If a 3010 code is passed to SCCM, the SCCM client will display a reboot prompt. If set to false, the 3010 return code will be replaced by a “0” (successful, no restart required).

As indicated in the quoted portion above, the default is $false which of course means do NOT return the “reboot required” code. By adding -AllowRebootPassThru, you are changing the setting to $true… DO return the “reboot required” code.

They could marginally improve the documentation by dropping the word “whether”

1 Like

That helps to clear up the explanation thx!
So to enable it we just add the Switch, which is not a parameter with a value:
-AllowRebootPassThru