SetAccountPrivilege
(
AccountName As String,
PrivilegeName As String
);
Parameters
[in] String AccountName
Name of a User or Group to whom a privilege is to be assigned.
[in] String PrivilegeName
Name of the privilege being assigned
Description
This property assigns a privilege to a User or Group.
Example
Dim Policy As IADsNTPolicy
Set Policy = GetObject("NTDS://DomainName1/MachineName")
Policy.SetAccountPrivilege "DomainName2\Domain Users",
"LOGON_LOCALLY"
See Also