TestimoX

API Reference

Command

ConvertTo-CxLgpoItems

Namespace ComputerX.PowerShell
Inputs
ComputerX.Admx.AdmxPolicy
Outputs
ComputerX.Lgpo.LgpoPolItem[]

Converts an ADMX policy to LGPO items (registry writes) for Machine/User scope.

Examples

Authored help example

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 requiredposition: 0pipeline: true (ByValue)
Gets or sets the Policy parameter.
Value object optionalposition: 1pipeline: false
Gets or sets the Value parameter.
Enable SwitchParameter optionalposition: 2pipeline: false
Gets or sets the Enable parameter.

Outputs

ComputerX.Lgpo.LgpoPolItem[]