TestimoX

API Reference

Command

Get-CxAdmxPolicy

Namespace ComputerX.PowerShell
Outputs
ComputerX.Admx.AdmxPolicy

Lists ADMX policies from a PolicyDefinitions directory.

Examples

Authored help example

Example 1


# Find policies matching a name pattern (Machine class only)
Get-CxAdmxPolicy -Path 'C:\\Windows\\PolicyDefinitions' -Name '*PowerShell*' -Class Machine
        

Example 2


# List enum choices (friendly text and underlying values)
Get-CxAdmxPolicy -Name 'SomeEnumPolicy' -Language en-US |
  ForEach-Object { $_.Elements | Where-Object Type -eq 'enum' |
    Select-Object ValueName, @{N='Choices';E={
      (($_.EnumItems) ?? @()) | ForEach-Object { "{0} (= {1})" -f ($_.DisplayName ?? $_.Value), $_.Value }
    }}}
        

Example 3


# Inspect list-of-adds policies (enabled/disabled lists)
Get-CxAdmxPolicy -Name '*TLS*' |
  Select-Object Name, @{N='EnabledAdds';E={$_.EnabledAdds.Count}}, @{N='DisabledAdds';E={$_.DisabledAdds.Count}}
        

Example 4


# Load from a custom or Central Store path with specific language
Get-CxAdmxPolicy -Path '\\contoso.com\SYSVOL\contoso.com\Policies\PolicyDefinitions' -Language 'en-US'
        

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-CxAdmxPolicy [-Path <string>] [-Name <string>] [-Class <string>] [-Language <string>] [<CommonParameters>]
#

Parameters

Path string optionalposition: 0pipeline: false
File system path to the target resource.
Name string optionalposition: 1pipeline: false
Name identifier for the target resource.
Class string optionalposition: 2pipeline: false
Gets or sets the Class parameter.
Language string optionalposition: 3pipeline: false
Gets or sets the Language parameter.

Outputs

ComputerX.Admx.AdmxPolicy