TestimoX

API Reference

Class

LgpoTextImportService

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

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: LgpoTextImportPlan

Builds an import plan by parsing LGPO text, grouping entries by target and preparing per‑target registry.pol payloads.

Parameters

lgpoText System.String requiredposition: 0
LGPO.exe 4‑line text format content.
replace System.Boolean requiredposition: 1
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).