共用方式為


IComputerTarget.GetUpdateInstallationInfoPerUpdate Method ()

 

Applies To: Windows Server Update Services

Gets the installation state for all approved updates.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

UpdateInstallationInfoCollection GetUpdateInstallationInfoPerUpdate()
UpdateInstallationInfoCollection^ GetUpdateInstallationInfoPerUpdate()
abstract GetUpdateInstallationInfoPerUpdate : unit -> UpdateInstallationInfoCollection
Function GetUpdateInstallationInfoPerUpdate As UpdateInstallationInfoCollection

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateInstallationInfoCollection

An UpdateInstallationInfoCollection collection that contains the installation state for all approved updates.

Exceptions

Exception

Condition

WsusObjectNotFoundException

Cannot find update installation information for the client computer.

Remarks

The collection may include installation status for updates that were not approved for deployment to the target group to which this client belongs. For example, if the WSUS server contains 10 updates (5 approved for the group to which this client belongs and 3 approved for another group), at least 3 of the updates will have an Unknown installation state.

Other updates could also contain an Unknown installation state if the client was unable to report the status for the update. You can call GetUpdateApprovals to determine if the update is deployed to this group so you know for certain which case the state represents.

If you want to know if the update was approved for deployment to this client, call GetUpdateApprovals.

Including updates that are not approved for deployment to this client provides you with visibility of those updates that you may want to approve for deployment to the client's target group in the future.

See Also

GetUpdateInstallationInfoPerUpdate Overload
IComputerTarget Interface
Microsoft.UpdateServices.Administration Namespace

Return to top