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)

public interface IAutomaticUpdateApprovalRule

NameDescription
System_CAPS_pubpropertyAction

Gets the type of action that the rule performs.

System_CAPS_pubpropertyCanSetDeadline

Gets a value indicating if the server that this rule is associated with supports the Deadline property being set.

System_CAPS_pubpropertyDeadline

Gets or sets an AutomaticUpdateApprovalDeadline to be applied to any updates to which this rule applies.

System_CAPS_pubpropertyEnabled

Gets or sets whether the automatic approval rule is enabled.

System_CAPS_pubpropertyId

Gets the ID of the rule.

System_CAPS_pubpropertyName

Gets or sets the name of the rule.

NameDescription
System_CAPS_pubmethodApplyRule()

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.

System_CAPS_pubmethodGetCategories()

Gets the categories of updates that will be approved automatically by this rule.

System_CAPS_pubmethodGetComputerTargetGroups()

Gets the target groups to which this automatic approval rule applies.

System_CAPS_pubmethodGetUpdateClassifications()

Gets the update classifications for which you want to create approvals automatically.

System_CAPS_pubmethodSave()

Saves changes to the automatic approval rule settings.

System_CAPS_pubmethodSetCategories(UpdateCategoryCollection)

Sets the categories of updates that will be approved automatically by this rule.

System_CAPS_pubmethodSetComputerTargetGroups(ComputerTargetGroupCollection)

Sets the computer groups to which this automatic approval rule applies.

System_CAPS_pubmethodSetUpdateClassifications(UpdateClassificationCollection)

Sets the classification of updates for which you want to create approvals automatically.

Return to top

Community Additions

ADD
Show: