API Reference
Command
Set-CxLgpoPol
Writes LGPO (registry.pol) for Machine or User scope.
Examples
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 ItemsParameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- Scope string
- LGPO scope to write, such as machine or user policy.
- Items LgpoPolItem[]
- Typed LGPO items to write to the selected registry.pol file.
- Merge SwitchParameter
- Preserves unrelated entries already present in the target registry.pol file.
- Backup SwitchParameter
- Creates a backup copy of the target registry.pol file before writing changes.
Outputs
System.Boolean
Set-CxLgpoPol [-ComputerName <string>] -Scope <string> -JsonPath <string> [-Merge] [-Backup] [<CommonParameters>]#Parameter set:
By JsonPathParameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- Scope string
- LGPO scope to write, such as machine or user policy.
- JsonPath string
- Path to a JSON baseline that should be converted back into LGPO items before writing.
- Merge SwitchParameter
- Preserves unrelated entries already present in the target registry.pol file.
- Backup SwitchParameter
- Creates a backup copy of the target registry.pol file before writing changes.
Outputs
System.Boolean