TestimoX

API Reference

Command

Set-CxLgpoPol

Namespace ComputerX.PowerShell
Inputs
ComputerX.Lgpo.LgpoPolItem[] System.String
Outputs
System.Boolean

Writes LGPO (registry.pol) for Machine or User scope.

Examples

Authored help example

Example 1


Set-CxLgpoPol -Scope Machine -JsonPath .\machine.pol.json -Merge -Backup
        

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

Set-CxLgpoPol [-ComputerName <string>] -Scope <string> -Items <LgpoPolItem[]> [-Merge] [-Backup] [<CommonParameters>]
#
Parameter set: By Items

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
Scope string requiredposition: 1pipeline: false
Gets or sets the Scope parameter.
Items LgpoPolItem[] requiredposition: 2pipeline: true (ByValue, ByPropertyName)
Gets or sets the Items parameter.
Merge SwitchParameter optionalposition: 3pipeline: false
Gets or sets the Merge parameter.
Backup SwitchParameter optionalposition: 4pipeline: false
Gets or sets the Backup parameter.

Outputs

System.Boolean

Set-CxLgpoPol [-ComputerName <string>] -Scope <string> -JsonPath <string> [-Merge] [-Backup] [<CommonParameters>]
#
Parameter set: By JsonPath

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
Scope string requiredposition: 1pipeline: false
Gets or sets the Scope parameter.
JsonPath string requiredposition: 2pipeline: false
Gets or sets the JsonPath parameter.
Merge SwitchParameter optionalposition: 3pipeline: false
Gets or sets the Merge parameter.
Backup SwitchParameter optionalposition: 4pipeline: false
Gets or sets the Backup parameter.

Outputs

System.Boolean