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