win32security.LsaRemoveAccountRights

LsaRemoveAccountRights(PolicyHandle, AccountSid, AllRights, UserRights)

Removes privs from an account

Parameters

PolicyHandle : PyLSA_HANDLE

An LSA policy handle as returned by win32security::LsaOpenPolicy

AccountSid : PySID

Account whose privileges will be removed

AllRights : int

Boolean value indicating if all privs should be removed from account

UserRights : (str/unicode,...)

List of privilege names to be removed (SE_*_NAME unicode constants)

Comments

If AllRights parm is true, account is *deleted*

Accepts keyword args.