TestimoX

API Reference

Class

UserRightsWriter

Namespace ComputerX.Audit
Assembly ComputerX
Modifiers static

Thin writer facade for Local Security Policy user-rights (Se* privileges). Delegates to LocalSecurityEditor.

Inheritance

  • Object
  • UserRightsWriter

Methods

Add 2 overloads
public static Void Add(String computerName, UserRightsAssignment right, params String[] principals) #
Returns: Void

Adds one or more principals to the given user-right assignment.

Parameters

computerName System.String requiredposition: 0
Target computer; null for local machine.
right LocalSecurityEditor.UserRightsAssignment requiredposition: 1
User-right assignment (e.g., SeRemoteInteractiveLogonRight).
principals System.Collections.Generic.IEnumerable{System.String} requiredposition: 2
SAM names or SIDs to add.
Add(System.String computerName, LocalSecurityEditor.UserRightsAssignment right, System.String[] principals) #

Adds one or more principals to the given user-right assignment.

Parameters

computerName System.String required
right LocalSecurityEditor.UserRightsAssignment required
principals System.String[] required
Remove 2 overloads
public static Void Remove(String computerName, UserRightsAssignment right, params String[] principals) #
Returns: Void

Removes one or more principals from the given user-right assignment.

Parameters

computerName System.String requiredposition: 0
right LocalSecurityEditor.UserRightsAssignment requiredposition: 1
principals System.Collections.Generic.IEnumerable{System.String} requiredposition: 2
Remove(System.String computerName, LocalSecurityEditor.UserRightsAssignment right, System.String[] principals) #

Removes one or more principals from the given user-right assignment.

Parameters

computerName System.String required
right LocalSecurityEditor.UserRightsAssignment required
principals System.String[] required
public static UserRightSetResult Set(String computerName, UserRightsAssignment right, IEnumerable<String> principals) #
Returns: UserRightSetResult

Replaces the principal set for a given right. Returns summary of changes.

Parameters

computerName System.String requiredposition: 0
Target computer; null for local machine.
right LocalSecurityEditor.UserRightsAssignment requiredposition: 1
User-right assignment to modify.
principals System.Collections.Generic.IEnumerable{System.String} requiredposition: 2
Final set of principals to enforce.

Returns

Summary of added/removed principals.