TestimoX

API Reference

Command

Get-CxWindowsUpdateComplianceSummary

Namespace ComputerX.PowerShell
Inputs
System.String[]
Outputs
ComputerX.Updates.WindowsUpdateComplianceSummary

Implements the Get-CxWindowsUpdateComplianceSummary cmdlet.

Examples

Authored help example

Example 1


Get-CxWindowsUpdateComplianceSummary -ComputerName DC01
        

Example 2


Get-CxWindowsUpdateComplianceSummary -ComputerName DC01 -ProviderMode Hybrid -WsusProviderServer wsus01.contoso.local -IncludeSecurityCorrelation
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-CxWindowsUpdateComplianceSummary [-ComputerName <string[]>] [-EventLookbackDays <int>] [-HistoryDays <int>] [-HistoryFailureCriticalThreshold <int>] [-HistoryFailureWarningThreshold <int>] [-HistoryMaxEntries <int>] [-ImpactSeverity <Unknown|Informational|Warning|Critical>] [-ImpactTarget <string>] [-ImpactTypesAffected <int>] [-IncludeDownstreamComputerTargets <bool>] [-IncludeSecurityCorrelation] [-ProviderMode <Endpoint|Wsus|Hybrid>] [-QueryTimeoutSeconds <int>] [-SecurityAsOfMonthOffset <int>] [-SecurityCriticalCountsAsCritical <bool>] [-SecurityExploitedCountsAsCritical <bool>] [-SecurityLookbackMonths <int>] [-SecurityMissingCountWarningThreshold <int>] [-SecurityMissingCriticalThreshold <int>] [-SecurityMissingExploitedThreshold <int>] [-SecurityOsQueryTimeoutSeconds <int>] [-SecurityTopListLimit <int>] [-SkipEventTelemetry] [-TargetPriorityWeight <int>] [-TargetRole <string>] [-WsusLagCriticalHours <int>] [-WsusLagWarningHours <int>] [-WsusProviderExecutionComputerName <string>] [-WsusProviderExecutionMode <LocalApi|RemotePowerShell>] [-WsusProviderPort <int>] [-WsusProviderServer <string>] [-WsusProviderUseSsl] [-WsusQueryTimeoutSeconds <int>] [-WsusStatusStaleCriticalHours <int>] [-WsusStatusStaleWarningHours <int>] [-WsusSummaryFailedCriticalThreshold <int>] [-WsusSummaryFailedWarningThreshold <int>] [-WsusSummaryNotInstalledCriticalThreshold <int>] [-WsusSummaryNotInstalledWarningThreshold <int>] [-WsusSummaryPendingRebootCriticalThreshold <int>] [-WsusSummaryPendingRebootWarningThreshold <int>] [-WsusSummaryPreferApprovedInstallCounters <bool>] [<CommonParameters>]
#

Parameters

ComputerName string[] optionalposition: 0pipeline: true (ByValue, ByPropertyName)aliases: ServerName
Target computer(s). Use '.' for local computer or provide DNS names.
EventLookbackDays int optionalposition: namedpipeline: false
Event log lookback window in days for the summary telemetry slice.
HistoryDays int optionalposition: namedpipeline: false
Number of days included in the recent-history slice. Set to 0 to disable the day cutoff.
HistoryFailureCriticalThreshold int optionalposition: namedpipeline: false
Critical threshold for failed recent-history rows. Set to 0 to disable.
HistoryFailureWarningThreshold int optionalposition: namedpipeline: false
Warning threshold for failed recent-history rows. Set to 0 to disable.
HistoryMaxEntries int optionalposition: namedpipeline: false
Maximum number of history rows retained in the summary. Set to 0 to disable the cap.
ImpactSeverity WindowsUpdatePatchImpactSeverity optionalposition: namedpipeline: falsevalues: 4
Optional impact severity used for reusable patch-priority weighting. Possible values: Unknown, Informational, Warning, Critical
Possible values: Unknown, Informational, Warning, Critical
ImpactTarget string optionalposition: namedpipeline: false
Optional impact target or owning service label used for reusable patch-priority weighting.
ImpactTypesAffected int optionalposition: namedpipeline: false
Optional count of affected impact types or dependent services used for reusable patch-priority weighting.
IncludeDownstreamComputerTargets bool optionalposition: namedpipeline: false
When true, include downstream computer targets when querying WSUS.
IncludeSecurityCorrelation SwitchParameter optionalposition: namedpipeline: false
When present, includes MSRC-based missing security-update correlation in output.
ProviderMode WindowsUpdateProviderMode optionalposition: namedpipeline: falsevalues: 3
Correlation provider mode: Endpoint, Wsus, or Hybrid. Possible values: Endpoint, Wsus, Hybrid
Possible values: Endpoint, Wsus, Hybrid
QueryTimeoutSeconds int optionalposition: namedpipeline: false
Per-query timeout in seconds for the summary telemetry slice.
SecurityAsOfMonthOffset int optionalposition: namedpipeline: false
Month offset used for MSRC correlation. 0 means current month, 1 means previous month, and so on.
SecurityCriticalCountsAsCritical bool optionalposition: namedpipeline: false
When true, critical updates force critical state in MSRC correlation.
SecurityExploitedCountsAsCritical bool optionalposition: namedpipeline: false
When true, exploited updates force critical state in MSRC correlation.
SecurityLookbackMonths int optionalposition: namedpipeline: false
Number of months included in MSRC gap collection, counting backward from the selected as-of month.
SecurityMissingCountWarningThreshold int optionalposition: namedpipeline: false
Missing-update count threshold used for warning state in MSRC correlation.
SecurityMissingCriticalThreshold int optionalposition: namedpipeline: false
Missing critical-update threshold used for critical-state candidate in MSRC correlation.
SecurityMissingExploitedThreshold int optionalposition: namedpipeline: false
Missing exploited-update threshold used for exploited-state candidate in MSRC correlation.
SecurityOsQueryTimeoutSeconds int optionalposition: namedpipeline: false
Optional OS detection timeout in seconds for MSRC correlation. Use 0 to keep evaluator defaults.
SecurityTopListLimit int optionalposition: namedpipeline: false
Maximum number of KB/CVE items returned in top lists for MSRC correlation.
SkipEventTelemetry SwitchParameter optionalposition: namedpipeline: false
Disables event log telemetry collection from the summary telemetry slice.
TargetPriorityWeight int optionalposition: namedpipeline: false
Optional non-negative priority weight applied to the target for patch posture scoring.
TargetRole string optionalposition: namedpipeline: false
Optional target role label used for reusable patch-priority weighting.
WsusLagCriticalHours int optionalposition: namedpipeline: false
Hybrid lag threshold in hours for critical state.
WsusLagWarningHours int optionalposition: namedpipeline: false
Hybrid lag threshold in hours for warning state.
WsusProviderExecutionComputerName string optionalposition: namedpipeline: false
Optional computer name used for remote WSUS-hosted execution in Wsus/Hybrid modes. Defaults to the WSUS host when WsusProviderExecutionMode is .
WsusProviderExecutionMode WindowsUpdateWsusExecutionMode optionalposition: namedpipeline: falsevalues: 2
Selects how the WSUS provider query is executed for Wsus/Hybrid modes. Possible values: LocalApi, RemotePowerShell
Possible values: LocalApi, RemotePowerShell
WsusProviderPort int optionalposition: namedpipeline: false
WSUS provider port (typically 8530 or 8531).
WsusProviderServer string optionalposition: namedpipeline: false
Optional WSUS server used for Wsus/Hybrid modes. When omitted, WSUS server auto-discovery is attempted from endpoint policy telemetry.
WsusProviderUseSsl SwitchParameter optionalposition: namedpipeline: false
When true, WSUS provider lookup uses SSL.
WsusQueryTimeoutSeconds int optionalposition: namedpipeline: false
WSUS query timeout in seconds.
WsusStatusStaleCriticalHours int optionalposition: namedpipeline: false
WSUS-only status-report age threshold in hours for critical state.
WsusStatusStaleWarningHours int optionalposition: namedpipeline: false
WSUS-only status-report age threshold in hours for warning state.
WsusSummaryFailedCriticalThreshold int optionalposition: namedpipeline: false
WSUS summary-risk critical threshold for failed updates. Set to 0 to disable.
WsusSummaryFailedWarningThreshold int optionalposition: namedpipeline: false
WSUS summary-risk warning threshold for failed updates. Set to 0 to disable.
WsusSummaryNotInstalledCriticalThreshold int optionalposition: namedpipeline: false
WSUS summary-risk critical threshold for not-installed updates. Set to 0 to disable.
WsusSummaryNotInstalledWarningThreshold int optionalposition: namedpipeline: false
WSUS summary-risk warning threshold for not-installed updates. Set to 0 to disable.
WsusSummaryPendingRebootCriticalThreshold int optionalposition: namedpipeline: false
WSUS summary-risk critical threshold for installed-pending-reboot updates. Set to 0 to disable.
WsusSummaryPendingRebootWarningThreshold int optionalposition: namedpipeline: false
WSUS summary-risk warning threshold for installed-pending-reboot updates. Set to 0 to disable.
WsusSummaryPreferApprovedInstallCounters bool optionalposition: namedpipeline: false
When true, WSUS summary risk prefers per-update approved-install counters.

Outputs

ComputerX.Updates.WindowsUpdateComplianceSummary