Adding privileges to an account on a computer on the network¶
add_account_privilege() |
Add a privilege to an account |
SYNTAX
add_account_privilege(computer, account, privilege)
Add a privilege to an account on a specified computer.
computer |
The name of a computer on the network. Use “” for the local computer. |
account |
The name of the account to which the privilege is to be added. This can be in the form domain\account. |
privilege |
The name of the privilege to be added. Refer to Microsoft documentation for a full list. |
The function returns 0 if successful, or a non-zero value if an error occurs. The Windows error code is stored in sys.Errno.
EXAMPLES
add_account_privilege("", ".\\MyAccount", "SeServiceLogonRight")
add_account_privilege("", "MyDomain\\MyAccount", "SeServiceLogonRight")
RELATED TOPICS |