LsaRemoveAccountRights(PolicyHandle, AccountSid, AllRights, UserRights)

Removes privs from an account


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)


If AllRights parm is true, account is *deleted*

Accepts keyword args.