TestimoX

API Reference

Command

Get-CxWindowsUpdate

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

Implements the Get-CxWindowsUpdate cmdlet.

Examples

Authored help example

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[] 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
InstallationStatus WindowsUpdateInstallationStatus optionalposition: namedpipeline: falsevalues: 2
Optional installation state filter. 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.
Online bool optionalposition: namedpipeline: false
Optional flag controlling whether the searcher performs an online scan.
Query string optionalposition: namedpipeline: false
Optional raw WUA criteria string. When supplied, structured filters are ignored.
RebootRequired bool optionalposition: namedpipeline: false
Optional reboot-required filter.
RevisionNumber int optionalposition: namedpipeline: false
Optional revision number filter.
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 to a service identifier through Get-CxWindowsUpdateService.
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

Outputs

ComputerX.Updates.WindowsUpdateEntry