< Back

Approve-WsusUpdate

Thu Apr 04, 2019 5:42 am

NAME Approve-WsusUpdate



SYNOPSIS

Approves an update to be applied to clients.





SYNTAX

Approve-WsusUpdate [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable <System.String>]

-Action {Install | Uninstall | NotApproved | All} -TargetGroupName <String> -Update <WsusUpdate> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Approve-WsusUpdate cmdlet approves an update to be applied to clients. This operation requires Windows Server Update Services (WSUS)

Administrator privileges.



To use this cmdlet, run the Get-WsusUpdate cmdlet and pipe the resulting WsusUpdate object into this cmdlet.





PARAMETERS

-Action <UpdateApprovalAction>

Specifies the action that clients should perform when applying the associated update. The acceptable values for this parameter are:



-- Install

-- Not Approved

-- Uninstall



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-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



-TargetGroupName <String>

Specifies the name of the computer target group for which to run this cmdlet.



Required? true

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









Example 1: Approve updates



PS C:\\> Get-WsusUpdate -Classification All -Approval Unapproved -Status FailedOrNeeded | Approve-WsusUpdate -Action Install -TargetGroupName "All

Computers"



This command approves for installation all unapproved updates with a status of failed or needed.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287825

Deny-WsusUpdate

Get-WsusUpdate