TestimoX

API Reference

Command

Get-ADXAdmxPolicyArtifact

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.Gpo.GpoLocal.AdmxPolicyArtifact

Generates registry-oriented artifacts for a single ADMX policy state.

Examples

Authored help example

Example 1


Get-ADXAdmxPolicyArtifact -PolicyId 'ExamplePolicy' -State Enabled -Scope Machine -Options @{ ExampleSetting = 5 }
        

Example 2


Get-ADXAdmxPolicyArtifact -PolicyId 'Example.admx::ExampleEnumPolicy' -State Enabled -AdmxDirectory 'C:\Windows\PolicyDefinitions' -Options @{ EnumSetting = 'Two' }
        

Example 3


Get-ADXAdmxPolicyArtifact -PolicyId 'SecondPolicy' -State NotConfigured -Scope Machine
        

Example 4


Get-ADXAdmxPolicyArtifact -PolicyId 'ExamplePolicy' -State Enabled -Scope Machine -Options @{ ExampleSetting = 5 } | Select-Object -ExpandProperty Mdm
        

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-ADXAdmxPolicyArtifact -PolicyId <string> -State <NotConfigured|Enabled|Disabled> [-AdmxDirectory <string>] [-Language <string>] [-Options <Hashtable>] [-Scope <Machine|User>] [<CommonParameters>]
#

Parameters

PolicyId string requiredposition: 0pipeline: false
Policy display name, internal name, or source-qualified identifier.
State PolicyState requiredposition: namedpipeline: falsevalues: 3
Desired policy state. Possible values: NotConfigured, Enabled, Disabled
Possible values: NotConfigured, Enabled, Disabled
AdmxDirectory string optionalposition: namedpipeline: false
Optional explicit PolicyDefinitions path.
Language string optionalposition: namedpipeline: false
Preferred ADML language (for example, en-US).
Options Hashtable optionalposition: namedpipeline: false
Optional element values keyed by ADMX element id.
Scope PolicyScope optionalposition: namedpipeline: falsevalues: 2
Optional explicit scope override. Possible values: Machine, User
Possible values: Machine, User

Outputs

ADPlayground.Gpo.GpoLocal.AdmxPolicyArtifact