TestimoX

API Reference

Command

Get-CxWindowsUpdateCorrelation

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

Implements the Get-CxWindowsUpdateCorrelation cmdlet.

Examples

Authored help example

Example 1


Get-CxWindowsUpdateCorrelation -ComputerName DC01 -ProviderMode Hybrid -WsusProviderServer wsus01.contoso.com
        

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-CxWindowsUpdateCorrelation [-ComputerName <string[]>] [-EventLookbackDays <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] [-WsusLagCriticalHours <int>] [-WsusLagWarningHours <int>] [-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 endpoint query.
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 event log timeout in seconds for endpoint query.
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 endpoint status query.
WsusLagCriticalHours int optionalposition: namedpipeline: false
Hybrid lag threshold in hours for critical.
WsusLagWarningHours int optionalposition: namedpipeline: false
Hybrid lag threshold in hours for warning.
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.
WsusStatusStaleWarningHours int optionalposition: namedpipeline: false
WSUS-only status-report age threshold in hours for warning.
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.WindowsUpdateCorrelationResult