TestimoX

API Reference

Class

NetlogonOwnershipRepair

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Scaffolding: ensures NETLOGON folder ownership/ACL meets baseline.

Inheritance

  • Object
  • NetlogonOwnershipRepair

Methods

public static IReadOnlyList<NetlogonSecurityRow> GetOwnerIssues(String computerName, String domainName = null, String expectedOwner = "S-1-5-32-544", Int32 scanCap = 200000) #
Returns: IReadOnlyList<NetlogonSecurityRow>

Enumerates NETLOGON items whose owner is not the expected owner.

Parameters

computerName System.String requiredposition: 0
Target computer (DC) hosting NETLOGON.
domainName System.String = null optionalposition: 1
Optional domain name used to resolve SYSVOL mapping.
expectedOwner System.String = "S-1-5-32-544" optionalposition: 2
Owner identity to enforce (name or SID). Defaults to BUILTIN\Administrators SID.
scanCap System.Int32 = 200000 optionalposition: 3
Maximum number of filesystem entries to scan.
public static NetlogonOwnerRepairResult SetOwner(String computerName, String path, String newOwner) #
Returns: NetlogonOwnerRepairResult

Attempts to set the owner on a file/directory path.

Parameters

computerName System.String requiredposition: 0
Target computer name for reporting.
path System.String requiredposition: 1
File or directory path (UNC or local).
newOwner System.String requiredposition: 2
New owner identity (name or SID).