TestimoX

API Reference

Class

LgpoPaths

Namespace ComputerX.Lgpo
Assembly ComputerX
Modifiers static

Helper methods for locating Local Group Policy registry.pol files.

Inheritance

  • Object
  • LgpoPaths

Methods

public static String GetPolPath(String computerName, Boolean machine) #
Returns: String

Gets the full path to the LGPO Registry.pol file on a local or remote computer.

Parameters

computerName System.String requiredposition: 0
Target host name or null/. for local machine.
machine System.Boolean requiredposition: 1
When true, returns the Machine scope path; otherwise, the User scope path.

Returns

Full path to the Registry.pol file for the requested scope.