You can use the User Rights policy related properties and methods to manage privileges such as logging on locally or replacing a process level token.
Note: Some of the following methods require the name of a privilege. These are described in IADsNTPolicy Privileges
Property/Method |
Description |
Returns all privileges for a given account (User or Group) |
|
Returns the names of all accounts (User or Group) that have a given privilege |
|
Removes a privilege from a User or Group |
|
Removes the specified privileges from a User or Group |
|
Assigns a privilege to a User or Group |
|
Assigns the specified privileges to a User or Group |
See Also