The SetNTRightsAssignment method allows you to add a privilege (right) to a specific user/group. This affects the local machine policy on the specified computer.
The SetNTRightsAssignment method has no optional input parameters.
For the SetNTRightsAssignment method, rollback consists of calling the RemoveNTRights Assignment method. Prior to performing this action, the provider reads the given right to confirm that the user indicated does not currently have the right being requested. If this is the case, the information is stored so the provider can remove this right from the user if rollback is necessary. If the user had this right prior to the call being made, rollback action does not remove the user, because that would result in a state inconsistent with that of the environment prior to this transaction.
Example XML Request
The following is an example of an XML request for the SetNTRightsAssignment method of the Computer Manager Provider:
Example XML Response
No example XML response.
Computer Management Provider API for: