win32security.AdjustTokenPrivileges
PyTOKEN_PRIVILEGES = AdjustTokenPrivileges(TokenHandle, bDisableAllPrivileges , NewState )
Enables or disables privileges for an access token.
Parameters
Comments
Accepts keyword args.
Return Value
Returns modified privileges for later restoral. Privileges deleted from the token using SE_PRIVILEGE_REMOVED are not returned.