TestimoX

API Reference

Class

AclSacl

Namespace ComputerX.Acl
Assembly ComputerX
Modifiers static

Helpers for reading and writing SACL (audit) information for files, registry keys, and services. Requires SeSecurityPrivilege to succeed.

Inheritance

  • Object
  • AclSacl

Methods

public static String GetFileSaclSddl(String path) #
Returns: String

Gets the SACL SDDL for a file or directory. Returns null when privilege is missing or not readable.

Parameters

path System.String requiredposition: 0
public static String GetRegistrySaclSddl(String computer, String fullPath) #
Returns: String

Gets the SACL SDDL for a registry key (local or remote).

Parameters

computer System.String requiredposition: 0
fullPath System.String requiredposition: 1
public static String GetServiceSaclSddl(String computer, String serviceName) #
Returns: String

Gets the SACL SDDL for a Windows service.

Parameters

computer System.String requiredposition: 0
serviceName System.String requiredposition: 1
public static Boolean SetFileSaclSddl(String path, String sddl) #
Returns: Boolean

Sets the SACL for a file or directory from SDDL. Returns true on success or idempotent match.

Parameters

path System.String requiredposition: 0
sddl System.String requiredposition: 1
public static Boolean SetRegistrySaclSddl(String computer, String fullPath, String sddl) #
Returns: Boolean

Sets the SACL for a registry key from SDDL.

Parameters

computer System.String requiredposition: 0
fullPath System.String requiredposition: 1
sddl System.String requiredposition: 2
public static Boolean SetServiceSaclSddl(String computer, String serviceName, String sddl) #
Returns: Boolean

Sets the SACL for a Windows service from SDDL.

Parameters

computer System.String requiredposition: 0
serviceName System.String requiredposition: 1
sddl System.String requiredposition: 2