Share via


IComputerTarget.GetUpdateInstallationInfoPerUpdate()

Retrieves the installation state for all approved updates.

public UpdateInstallationInfoCollection GetUpdateInstallationInfoPerUpdate();
Public Function GetUpdateInstallationInfoPerUpdate() As UpdateInstallationInfoCollection
Implements IComputerTarget.GetUpdateInstallationInfoPerUpdate

Parameters

This method has no parameters.

Return Values

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

Exceptions

Exception type 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 (five approved for the group to which this client belongs and three approved for another group), at least three 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 IUpdate.GetUpdateApprovals(IComputerTargetGroup) 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 IUpdate.GetUpdateApprovals(IComputerTargetGroup).

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.

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.

See Also

IUpdate.GetUpdateInstallationInfoPerComputerTarget