TestimoX

API Reference

Command

Get-CxServerFeature

Namespace ComputerX.PowerShell
Inputs
System.String[]
Outputs
ComputerX.Features.ServerFeatureInfo

Gets installed Server Manager features (roles/role services/features) via Win32_ServerFeature.

Examples

Authored help example

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[] optionalposition: 0pipeline: true (ByValue, ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
IncludeAvailable SwitchParameter optionalposition: namedpipeline: false
Includes non-installed catalog entries by enriching data with Server Manager (Get-WindowsFeature) output.
Name string[] optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
Optional timeout (in seconds) for catalog enrichment calls. Has no effect unless IncludeAvailable is specified.

Outputs

ComputerX.Features.ServerFeatureInfo