API Reference
Command
Get-CxServerFeature
Gets installed Server Manager features (roles/role services/features) via Win32_ServerFeature.
Examples
Example 1
Get-CxServerFeature
Example 2
Get-CxServerFeature -ComputerName SRV1 | Sort-Object Id
Example 3
Get-CxServerFeature -ComputerName SRV1 -IncludeAvailable | Where-Object Installed -eq $false
Example 4
Get-CxServerFeature -ComputerName SRV1 -Name 'AD*','DNS*'
Example 5
Get-CxServerFeature -ComputerName SRV1 -IncludeAvailable -TimeoutSeconds 90
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-CxServerFeature [-ComputerName <string[]>] [-IncludeAvailable] [-Name <string[]>] [-TimeoutSeconds <int>] [<CommonParameters>]#Parameters
- ComputerName string[]
- Target computer(s). Use '.' for local computer or provide DNS names.
- IncludeAvailable SwitchParameter
- Includes non-installed catalog entries by enriching data with Server Manager (Get-WindowsFeature) output.
- Name string[]
- Optional wildcard patterns (`*`/`?`) used to filter on feature names. Matches against `FeatureName`, `DisplayName`, and `Name`. Canonical-name patterns may trigger catalog fallback matching while preserving installed-only output.
- TimeoutSeconds int
- Optional timeout (in seconds) for catalog enrichment calls. Has no effect unless IncludeAvailable is specified.
Outputs
ComputerX.Features.ServerFeatureInfo