IAutomaticUpdateApprovalRule Interface
Applies To: Windows Server Update Services
Use this interface to define and enable an automatic approval rule. The approval rule creates approvals for newly synchronized updates that fall within one of the specified update classifications. To get this interface, call the CreateInstallApprovalRule. If you want to apply this automatic approval rule to updates that were synchronized earlier, use the ApplyRule method. The rule applies only to new updates, not to new revisions of an update. Any changes made to this automatic approval rule will not be saved to the database until you call the Save method.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public interface IAutomaticUpdateApprovalRule
public interface class IAutomaticUpdateApprovalRule
type IAutomaticUpdateApprovalRule = interface end
Public Interface IAutomaticUpdateApprovalRule
Properties
Name | Description | |
---|---|---|
Action | Gets the type of action that the rule performs. |
|
CanSetDeadline | Gets a value indicating if the server that this rule is associated with supports the Deadline property being set. |
|
Deadline | Gets or sets an AutomaticUpdateApprovalDeadline to be applied to any updates to which this rule applies. |
|
Enabled | Gets or sets whether the automatic approval rule is enabled. |
|
Id | Gets the ID of the rule. |
|
Name | Gets or sets the name of the rule. |
Methods
Name | Description | |
---|---|---|
ApplyRule() | Applies the defined approval rule against the existing updates on the WSUS server. All updates will be approved if they are not already approved and if they are not declined. |
|
GetCategories() | Gets the categories of updates that will be approved automatically by this rule. |
|
GetComputerTargetGroups() | Gets the target groups to which this automatic approval rule applies. |
|
GetUpdateClassifications() | Gets the update classifications for which you want to create approvals automatically. |
|
Save() | Saves changes to the automatic approval rule settings. |
|
SetCategories(UpdateCategoryCollection) | Sets the categories of updates that will be approved automatically by this rule. |
|
SetComputerTargetGroups(ComputerTargetGroupCollection) | Sets the computer groups to which this automatic approval rule applies. |
|
SetUpdateClassifications(UpdateClassificationCollection) | Sets the classification of updates for which you want to create approvals automatically. |
See Also
Microsoft.UpdateServices.Administration Namespace
Return to top