API Reference
Class
NetlogonOwnershipRepair
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
- Target computer (DC) hosting NETLOGON.
- domainName System.String = null
- Optional domain name used to resolve SYSVOL mapping.
- expectedOwner System.String = "S-1-5-32-544"
- Owner identity to enforce (name or SID). Defaults to BUILTIN\Administrators SID.
- scanCap System.Int32 = 200000
- Maximum number of filesystem entries to scan.
public static NetlogonOwnerRepairResult SetOwner(String computerName, String path, String newOwner) #Returns:
NetlogonOwnerRepairResultAttempts to set the owner on a file/directory path.
Parameters
- computerName System.String
- Target computer name for reporting.
- path System.String
- File or directory path (UNC or local).
- newOwner System.String
- New owner identity (name or SID).