API Reference
Class
LgpoTextImportService
Builds a typed import plan from LGPO text and prepares per-target registry.pol payloads. Keeps PowerShell wrappers thin and reusable in other hosts.
Inheritance
- Object
- LgpoTextImportService
Methods
public static LgpoTextImportPlan BuildPlan(String lgpoText, Boolean replace) #Returns:
LgpoTextImportPlanBuilds an import plan by parsing LGPO text, grouping entries by target and preparing per‑target registry.pol payloads.
Parameters
- lgpoText System.String
- LGPO.exe 4‑line text format content.
- replace System.Boolean
- When true, starts from an empty pol; otherwise merges with existing file if present.
Returns
A populated LgpoTextImportPlan ready to be executed by a host (e.g., PowerShell) that saves files.
Exceptions
FormatException– Thrown when the LGPO text contains invalid encodings (e.g., BINARY hex tokens).