Deny-WsusUpdate
Declines the update for deployment.
Deny-WsusUpdate
-Update <WsusUpdate>
[-Confirm]
[-WhatIf]
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.
PS C:\> Get-WsusUpdate -Classification All -Approval Unapproved -Status FailedOrNeeded | Deny-WsusUpdate
This example declines all unapproved updates with a status of failed or needed.
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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.
Type: | WsusUpdate |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Microsoft.UpdateServices.Commands.WsusUpdate
WsusUpdate
None