TestimoX

API Reference

Command

Get-CxWindowsUpdateUninstallCandidate

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

Implements the Get-CxWindowsUpdateUninstallCandidate cmdlet.

Examples

Authored help example

Example 1


Get-CxWindowsUpdateUninstallCandidate
        

Example 2


Get-CxWindowsUpdateUninstallCandidate -Kb KB5039999
        

Example 3


Get-CxWindowsUpdateUninstallCandidate -ProviderMode Hybrid -WsusProviderServer wsus01.contoso.local -IncludeSecurityCorrelation
        

Example 4


Get-CxWindowsUpdateUninstallCandidate -MinimumState Warning -OnlyUninstallable -SortByRisk
        

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-CxWindowsUpdateUninstallCandidate [-ComputerName <string[]>] [-AutoSelectOnWebSites <bool>] [-BrowseOnly <bool>] [-CategoryId <string[]>] [-CustomCriteria <string>] [-DeploymentAction <Unknown>] [-EventLookbackDays <int>] [-HistoryDays <int>] [-HistoryMaxEntries <int>] [-IncludeDownstreamComputerTargets <bool>] [-IncludeSecurityCorrelation] [-InstallationStatus <Installed|NotInstalled>] [-IsAssigned <bool>] [-IsHidden <bool>] [-Kb <string[]>] [-MaxUpdates <int>] [-MinimumState <Informational|Warning|Critical>] [-Online <bool>] [-OnlyUninstallable] [-ProviderMode <Endpoint|Wsus|Hybrid>] [-Query <string>] [-QueryTimeoutSeconds <int>] [-RebootRequired <bool>] [-RevisionNumber <int>] [-SecurityAsOfMonthOffset <int>] [-ServerSelection <Default|ManagedServer|WindowsUpdate|Others>] [-ServiceId <string>] [-ServiceName <string>] [-SkipCorrelation] [-SkipEventTelemetry] [-SkipHistory] [-SortByRisk] [-UpdateId <string[]>] [-UpdateType <Unknown|Software|Driver|ServicePack>] [-WsusProviderPort <int>] [-WsusProviderServer <string>] [-WsusProviderUseSsl] [-WsusQueryTimeoutSeconds <int>] [<CommonParameters>]
#

Parameters

ComputerName string[] optionalposition: 0pipeline: true (ByValue, ByPropertyName)aliases: ServerName
Target computer(s). Use '.' for local computer or provide DNS names.
AutoSelectOnWebSites bool optionalposition: namedpipeline: false
Optional auto-select-on-web-sites filter.
BrowseOnly bool optionalposition: namedpipeline: false
Optional browse-only filter.
CategoryId string[] optionalposition: namedpipeline: false
Optional category identifiers to include.
CustomCriteria string optionalposition: namedpipeline: false
Optional custom WUA criteria appended to the structured query.
DeploymentAction WindowsUpdateDeploymentAction optionalposition: namedpipeline: falsevalues: 6
Optional deployment action filter. Possible values: Unknown, None, Installation, Uninstallation, Detection, OptionalInstallation, All
Possible values: Unknown, Installation, Uninstallation, Detection, OptionalInstallation, All
EventLookbackDays int optionalposition: namedpipeline: false
Event log lookback window in days for optional environment correlation.
HistoryDays int optionalposition: namedpipeline: false
Number of days included in the recent-history slice. Set to 0 to disable the day cutoff.
HistoryMaxEntries int optionalposition: namedpipeline: false
Maximum number of recent-history rows used for candidate enrichment. Set to 0 to disable the cap.
IncludeDownstreamComputerTargets bool optionalposition: namedpipeline: false
When true, include downstream computer targets when querying WSUS.
IncludeSecurityCorrelation SwitchParameter optionalposition: namedpipeline: false
When present, includes MSRC-based security correlation in environment hints.
InstallationStatus WindowsUpdateInstallationStatus optionalposition: namedpipeline: falsevalues: 2
Optional installation state filter. When omitted, uninstall candidate discovery defaults to installed updates. Possible values: Installed, NotInstalled
Possible values: Installed, NotInstalled
IsAssigned bool optionalposition: namedpipeline: false
Optional assigned-state filter.
IsHidden bool optionalposition: namedpipeline: false
Optional hidden-state filter.
Kb string[] optionalposition: namedpipeline: false
Optional KB article identifiers to include.
MaxUpdates int optionalposition: namedpipeline: false
Optional maximum number of returned updates per computer. Set to 0 to disable the cap.
MinimumState WindowsUpdateUninstallCandidateState optionalposition: namedpipeline: falsevalues: 3
Optional minimum risk state returned by the reusable candidate query. Possible values: Informational, Warning, Critical
Possible values: Informational, Warning, Critical
Online bool optionalposition: namedpipeline: false
Optional flag controlling whether the searcher performs an online scan.
OnlyUninstallable SwitchParameter optionalposition: namedpipeline: false
When present, only returns candidates that WUA reports as uninstallable.
ProviderMode WindowsUpdateProviderMode optionalposition: namedpipeline: falsevalues: 3
Correlation provider mode used for optional environment hints. Possible values: Endpoint, Wsus, Hybrid
Possible values: Endpoint, Wsus, Hybrid
Query string optionalposition: namedpipeline: false
Optional raw WUA criteria string. When supplied, structured filters are ignored.
QueryTimeoutSeconds int optionalposition: namedpipeline: false
Per-query timeout in seconds for optional environment correlation.
RebootRequired bool optionalposition: namedpipeline: false
Optional reboot-required filter.
RevisionNumber int optionalposition: namedpipeline: false
Optional revision number filter.
SecurityAsOfMonthOffset int optionalposition: namedpipeline: false
Month offset used for optional MSRC correlation. 0 means current month, 1 means previous month, and so on.
ServerSelection WindowsUpdateServerSelection optionalposition: namedpipeline: falsevalues: 4
Optional WUA searcher server selection. Possible values: Default, ManagedServer, WindowsUpdate, Others
Possible values: Default, ManagedServer, WindowsUpdate, Others
ServiceId string optionalposition: namedpipeline: false
Optional update service identifier used when ServerSelection is Others.
ServiceName string optionalposition: namedpipeline: false
Optional update service display name resolved through the reusable service-discovery layer.
SkipCorrelation SwitchParameter optionalposition: namedpipeline: false
Skips environment correlation enrichment.
SkipEventTelemetry SwitchParameter optionalposition: namedpipeline: false
Disables event log telemetry collection for optional environment correlation.
SkipHistory SwitchParameter optionalposition: namedpipeline: false
Skips recent WUA history enrichment.
SortByRisk SwitchParameter optionalposition: namedpipeline: false
When present, orders candidates by risk and recency instead of preserving WUA discovery order.
UpdateId string[] optionalposition: namedpipeline: false
Optional update identifiers to include.
UpdateType WindowsUpdateQueryType optionalposition: namedpipeline: falsevalues: 4
Optional update type filter. Possible values: Unknown, Software, Driver, ServicePack
Possible values: Unknown, Software, Driver, ServicePack
WsusProviderPort int optionalposition: namedpipeline: false
WSUS provider port used for Wsus or Hybrid environment hints.
WsusProviderServer string optionalposition: namedpipeline: false
Optional WSUS server used for Wsus or Hybrid environment hints.
WsusProviderUseSsl SwitchParameter optionalposition: namedpipeline: false
When true, WSUS provider lookup uses SSL.
WsusQueryTimeoutSeconds int optionalposition: namedpipeline: false
WSUS query timeout in seconds for optional environment correlation.

Outputs

ComputerX.Updates.WindowsUpdateUninstallCandidate