UpdateServerStatus

This class contains statistics summarizing the current state of the WSUS server, updates, and the client computers.

To retrieve this class, call the IUpdateServer.GetStatus method. The statistics are a snapshot in time of the current counts. You need to call the IUpdateServer.GetStatus method each time you want to receive the current counts. Do not use the new keyword to create a this class.

The UpdateServerStatus class is derived from the System.Object class.

Public Methods

The UpdateServerStatus class has the following public methods.

Method Description
Equals(Object)

Determines if the specified Object is equal to the current Object.

Equals(Object, Object)

Static (Shared). Determines whether the specified Object instances are considered equal.

GetHashCode()

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

GetType()

Retrieves the Type of the current instance.

ReferenceEquals(Object, Object)

Static (Shared). Determines if the specified Object instances are the same instance.

ToString()

Retrieves a String that represents the current Object.

Public Properties

The UpdateServerStatus class has the following public properties.

Property Description
ApprovedUpdateCount

Number of updates on the WSUS server that have been approved.

ComputerTargetCount

Number of clients that are known to the WSUS server.

ComputerTargetsNeedingUpdatesCount

Number of clients with at least one update that is not yet installed.

ComputerTargetsWithUpdateErrorsCount

Number of clients with at least one update that is currently in a failure state.

CriticalOrSecurityUpdatesNotApprovedForInstallCount

Number of critical or security updates on the WSUS server that are not approved for installation.

CustomComputerTargetGroupCount

Number of administrator-created computer target groups on the WSUS server.

DeclinedUpdateCount

Number of updates on the WSUS server that have been declined by an administrator.

ExpiredUpdateCount

Number of updates on the WSUS server whose latest revision is marked as expired by the publisher of the update.

NotApprovedUpdateCount

Number of updates on the WSUS server that have not been approved or declined.

ShouldDeleteUnneededRevisions

Indicates if the WSUS database is growing too large and that unneeded revisions should be deleted.

UnrecognizedClientRequestedTargetGroupNames

Names of target groups requested by clients that do not match existing target groups on the server.

UpdateCount

Total number of updates on the WSUS server.

UpdatesNeededByComputersCount

Number of updates on the WSUS server that are needed by one or more client computers.

UpdatesNeedingFilesCount

Number of updates on the WSUS server that do not have all the required installation files.

UpdatesWithClientErrorsCount

Number of updates on the WSUS server that have at least one client that is currently in a failed state for that update.

UpdatesWithServerErrorsCount

Number of updates on the WSUS server that are in a failure state.

UpdatesWithStaleUpdateApprovalsCount

Number of updates on the WSUS server that have a revision of an update that is approved but is not the latest revision.

WsusInfrastructureUpdatesNotApprovedForInstallCount

Number of WSUS infrastructure updates on the WSUS server that are not approved for installation.

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.