win32security.LsaAddAccountRights

LsaAddAccountRights(PolicyHandle, AccountSid, UserRights)

Adds a list of privileges to an account

Parameters

PolicyHandle : PyLSA_HANDLE

An LSA policy handle as returned by win32security::LsaOpenPolicy

AccountSid : PySID

Account to which privs will be added

UserRights : (str/unicode,...)

Sequence of privilege names (SE_*_NAME unicode constants)

Comments

Account is created if it doesn't already exist.

Accepts keyword args.