API Reference
Command
ConvertTo-CxLgpoItems
Converts an ADMX policy to LGPO items (registry writes) for Machine/User scope.
Examples
Example 1
Get-CxAdmxPolicy -Name 'EnableScriptBlockLogging' | ConvertTo-CxLgpoItems -Value $true
Example 2
# Enum by value text
Get-CxAdmxPolicy -Name 'SomeEnumPolicy' | ConvertTo-CxLgpoItems -Value 'High'
Example 3
# Enum by index (second item)
Get-CxAdmxPolicy -Name 'SomeEnumPolicy' | ConvertTo-CxLgpoItems -Value '#1'
Example 4
# List policy
Get-CxAdmxPolicy -Name 'TrustedServers' | ConvertTo-CxLgpoItems -Value @('a','b','c')
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
ConvertTo-CxLgpoItems -Policy <AdmxPolicy> [-Value <object>] [-Enable] [<CommonParameters>]#Parameters
- Policy AdmxPolicy
- Gets or sets the Policy parameter.
- Value object
- Gets or sets the Value parameter.
- Enable SwitchParameter
- Gets or sets the Enable parameter.
Outputs
ComputerX.Lgpo.LgpoPolItem[]