API Reference
Command
Get-ADXAdmxPolicyArtifact
Generates registry-oriented artifacts for a single ADMX policy state.
Examples
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
- Policy display name, internal name, or source-qualified identifier.
- State PolicyState
- Desired policy state. Possible values: NotConfigured, Enabled, Disabled
- Possible values:
NotConfigured,Enabled,Disabled - AdmxDirectory string
- Optional explicit PolicyDefinitions path.
- Language string
- Preferred ADML language (for example, en-US).
- Options Hashtable
- Optional element values keyed by ADMX element id.
- Scope PolicyScope
- Optional explicit scope override. Possible values: Machine, User
- Possible values:
Machine,User
Outputs
ADPlayground.Gpo.GpoLocal.AdmxPolicyArtifact