MicrosoftDocs / sccm-docs-powershell-ref

Configuration Manager PowerShell documentation public repo
https://docs.microsoft.com/powershell/sccm/configurationmanager/
Creative Commons Attribution 4.0 International
26 stars 61 forks source link

Set-CMSoftwareUpdateDeployment RestartServer and RestartWorkstation parameters reversed #237

Closed 0x00000oak closed 2 years ago

0x00000oak commented 2 years ago

When running

Set-CMSoftwareUpdateDeployment -RestartServer $false-RestartWorkstation $false

the result is that the deployment is set to not suppress the restart. This logic is reversed, setting the parameters to $false should mean no restart - suppress the restart.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

aczechowski commented 2 years ago

Thanks @haifisch88 for the feedback! It's a bug in the doc, I'll change the wording to "Indicate whether to suppress a restart...." The applicable UI settings are described in the following article: https://docs.microsoft.com/mem/configmgr/sum/deploy-use/manually-deploy-software-updates#BKMK_4DeployUpdateGroup (search for "Device restart behavior").

I'll also explicitly note the behavior for using true/false.

0x00000oak commented 2 years ago

Brilliant, thank you!