API Reference
Command
Get-CxWindowsUpdate
Implements the Get-CxWindowsUpdate cmdlet.
Examples
Example 1
Get-CxWindowsUpdate
Example 2
Get-CxWindowsUpdate -ComputerName DC01 -UpdateType Driver -RebootRequired $true
Example 3
Get-CxWindowsUpdate -ServiceName 'Windows Update' -Online $true
Example 4
Get-CxWindowsUpdate -Query "(IsInstalled=0 and IsHidden=0 and CategoryIDs contains '0FA1201D-4330-4FA8-8AE9-B877473B6441')"
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-CxWindowsUpdate [-ComputerName <string[]>] [-AutoSelectOnWebSites <bool>] [-BrowseOnly <bool>] [-CategoryId <string[]>] [-CustomCriteria <string>] [-DeploymentAction <Unknown>] [-InstallationStatus <Installed|NotInstalled>] [-IsAssigned <bool>] [-IsHidden <bool>] [-Kb <string[]>] [-MaxUpdates <int>] [-Online <bool>] [-Query <string>] [-RebootRequired <bool>] [-RevisionNumber <int>] [-ServerSelection <Default|ManagedServer|WindowsUpdate|Others>] [-ServiceId <string>] [-ServiceName <string>] [-UpdateId <string[]>] [-UpdateType <Unknown|Software|Driver|ServicePack>] [<CommonParameters>]#Parameters
- ComputerName string[]
- Target computer(s). Use '.' for local computer or provide DNS names.
- AutoSelectOnWebSites bool
- Optional auto-select-on-web-sites filter.
- BrowseOnly bool
- Optional browse-only filter.
- CategoryId string[]
- Optional category identifiers to include.
- CustomCriteria string
- Optional custom WUA criteria appended to the structured query.
- DeploymentAction WindowsUpdateDeploymentAction
- Optional deployment action filter. Possible values: Unknown, None, Installation, Uninstallation, Detection, OptionalInstallation, All
- Possible values:
Unknown,Installation,Uninstallation,Detection,OptionalInstallation,All - InstallationStatus WindowsUpdateInstallationStatus
- Optional installation state filter. Possible values: Installed, NotInstalled
- Possible values:
Installed,NotInstalled - IsAssigned bool
- Optional assigned-state filter.
- IsHidden bool
- Optional hidden-state filter.
- Kb string[]
- Optional KB article identifiers to include.
- MaxUpdates int
- Optional maximum number of returned updates per computer. Set to 0 to disable the cap.
- Online bool
- Optional flag controlling whether the searcher performs an online scan.
- Query string
- Optional raw WUA criteria string. When supplied, structured filters are ignored.
- RebootRequired bool
- Optional reboot-required filter.
- RevisionNumber int
- Optional revision number filter.
- ServerSelection WindowsUpdateServerSelection
- Optional WUA searcher server selection. Possible values: Default, ManagedServer, WindowsUpdate, Others
- Possible values:
Default,ManagedServer,WindowsUpdate,Others - ServiceId string
- Optional update service identifier used when ServerSelection is Others.
- ServiceName string
- Optional update service display name resolved to a service identifier through Get-CxWindowsUpdateService.
- UpdateId string[]
- Optional update identifiers to include.
- UpdateType WindowsUpdateQueryType
- Optional update type filter. Possible values: Unknown, Software, Driver, ServicePack
- Possible values:
Unknown,Software,Driver,ServicePack
Outputs
ComputerX.Updates.WindowsUpdateEntry