TestimoX

API Reference

Command

Test-ADXPolicySupported

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.Gpo.GpoLocal.PolicySupportResult

Tests whether an ADMX policy is supported on a target OS.

Examples

Authored help example

Example 1


Test-ADXPolicySupported -AdmxDirectory 'C:\\Windows\\PolicyDefinitions' -PolicyName 'SomePolicy'
        

Example 2


Test-ADXPolicySupported -AdmxDirectory 'C:\\Windows\\PolicyDefinitions' -PolicyName 'SomePolicy' -ComputerName 'SERVER01'
        

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

Test-ADXPolicySupported -AdmxDirectory <string> -PolicyName <string> [-ComputerName <string>] [-Language <string>] [<CommonParameters>]
#

Parameters

AdmxDirectory string requiredposition: namedpipeline: false
Path to a PolicyDefinitions store containing ADMX/ADML files (central store or local).
PolicyName string requiredposition: namedpipeline: false
Internal ADMX policy name to evaluate.
ComputerName string optionalposition: namedpipeline: false
Target computer name for OS detection; null uses local computer.
Language string optionalposition: namedpipeline: false
Preferred language for string resolution (e.g., en-US).

Outputs

ADPlayground.Gpo.GpoLocal.PolicySupportResult