Share via


Declining an Update

 

Applies To: Windows Server Update Services

To prevent an update from deploying

  1. Retrieve the IUpdate instance of the update that you want to prevent from being deployed.

  2. Call IUpdate.Decline() to prevent the update from deploying.

Declining an update also removes approvals from previous revisions of the update.

If you want to approve an update for the All Computers group, but block the update from deploying to a specific target group, call IUpdate.Approve(UpdateApprovalAction, IComputerTargetGroup) and set action to UpdateApprovalAction.Block.

WSUS automatically declines updates whose publication state is expired.