IUpdateServer.GetComputerStatus Method (ComputerTargetScope, UpdateSources)
Applies To: Windows Server Update Services
Gets high-level status information summarizing the state of the computers that are clients of this server.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
UpdateServerStatus GetComputerStatus(
ComputerTargetScope computersToInclude,
UpdateSources updateSources
)
UpdateServerStatus^ GetComputerStatus(
ComputerTargetScope^ computersToInclude,
UpdateSources updateSources
)
abstract GetComputerStatus :
computersToInclude:ComputerTargetScope *
updateSources:UpdateSources -> UpdateServerStatus
Function GetComputerStatus (
computersToInclude As ComputerTargetScope,
updateSources As UpdateSources
) As UpdateServerStatus
Parameters
computersToInclude
Type: Microsoft.UpdateServices.Administration.ComputerTargetScopeA ComputerTargetScope that specifies the computers to summarize.
updateSources
Type: Microsoft.UpdateServices.Administration.UpdateSourcesThe UpdateSources of updates to include, which can be any combination of sources. This value determines the set of updates to use when determining the ComputerTargetsNeedingUpdatesCount, ComputerTargetsWithUpdateErrorsCount, and ComputersUpToDateCount.
Return Value
Type: Microsoft.UpdateServices.Administration.UpdateServerStatus
An UpdateServerStatus object summarizing the state of the computers that are clients of this server.
Remarks
This method updates only the ComputerTargetCount, ComputerTargetsNeedingUpdatesCount, ComputerTargetsWithUpdateErrorsCount, and ComputersUpToDateCount properties. All other properties will be 0 or empty.
See Also
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace
Return to top