< Back
Deny-WsusUpdate
Post
NAME Deny-WsusUpdate
SYNOPSIS
Declines the update for deployment.
SYNTAX
Deny-WsusUpdate [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable <System.String>]
-Update <WsusUpdate> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Deny-WsusUpdate cmdlet declines the specified cmdlet for deployment. To use this cmdlet, run the Get-WsusUpdate cmdlet and pass the resulting
WsusUpdate object into this cmdlet. This operation requires Windows Server Update Services (WSUS) Administrator privileges.
PARAMETERS
-InformationAction [<System.Management.Automation.ActionPreference>]
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationVariable [<System.String>]
Specifies an information variable.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-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 passing the resulting WsusUpdate object into this cmdlet.
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.Prompts you for confirmation before running the cmdlet.
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.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Microsoft.UpdateServices.Commands.WsusUpdate
OUTPUTS
None
Example 1: Deny updates
PS C:\\> Get-WsusUpdate -Classification All -Approval Unapproved -Status FailedOrNeeded | Deny-WsusUpdate
This command declines all unapproved updates with a status of failed or needed.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/p/?linkid=287826
Approve-WsusUpdate
Get-WsusUpdate
SYNOPSIS
Declines the update for deployment.
SYNTAX
Deny-WsusUpdate [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable <System.String>]
-Update <WsusUpdate> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Deny-WsusUpdate cmdlet declines the specified cmdlet for deployment. To use this cmdlet, run the Get-WsusUpdate cmdlet and pass the resulting
WsusUpdate object into this cmdlet. This operation requires Windows Server Update Services (WSUS) Administrator privileges.
PARAMETERS
-InformationAction [<System.Management.Automation.ActionPreference>]
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:
-- Continue
-- Ignore
-- Inquire
-- SilentlyContinue
-- Stop
-- Suspend
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-InformationVariable [<System.String>]
Specifies an information variable.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-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 passing the resulting WsusUpdate object into this cmdlet.
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.Prompts you for confirmation before running the cmdlet.
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.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Microsoft.UpdateServices.Commands.WsusUpdate
OUTPUTS
None
Example 1: Deny updates
PS C:\\> Get-WsusUpdate -Classification All -Approval Unapproved -Status FailedOrNeeded | Deny-WsusUpdate
This command declines all unapproved updates with a status of failed or needed.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/p/?linkid=287826
Approve-WsusUpdate
Get-WsusUpdate