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
- Gets or sets the Scope parameter.
- Items LgpoPolItem[]
- Gets or sets the Items parameter.
- Merge SwitchParameter
- Gets or sets the Merge parameter.
- Backup SwitchParameter
- Gets or sets the Backup parameter.
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
- Gets or sets the Scope parameter.
- JsonPath string
- Gets or sets the JsonPath parameter.
- Merge SwitchParameter
- Gets or sets the Merge parameter.
- Backup SwitchParameter
- Gets or sets the Backup parameter.
Outputs
System.Boolean