Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Deny-WsusUpdate

Deny-WsusUpdate

microsoft.updateservices.commands.dll

Synopsis

Declines the update for deployment.

Syntax

Deny-WsusUpdate [-Update] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Deny-WsusUpdate cmdlet declines the specified cmdlet for deployment. To use this cmdlet, run the Get-WsusUpdate cmdlet and pipe the resulting WsusUpdate object into this cmdlet. This operation requires Windows Server Update Services (WSUS) Administrator privileges.

Parameters

-Update <WsusUpdate>

Specifies the object that contains the server of the update to be approved or denied as well as the update to be approved or denied. This value is obtained by running the Get-WsusUpdate cmdlet and piping the resulting WsusUpdate object into this cmdlet.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.UpdateServices.Commands.WsusUpdate

Return Type

None

Notes

None

Examples

EXAMPLE 1

This example declines all unapproved updates with a status of failed or needed.

PS C:\> Get-WsusUpdate -Classification All -Approval Unapproved -Status FailedOrNeeded | Deny-WsusUpdate

Online Version
Get-WsusUpdate