This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.ActiveDirectory.
Summary
Disables a user account given the specified properties.
Syntax
public static void DisableUser(this ICakeContext context, string propertyName, string propertyValue, UserSettings settings)
Examples
DisableUser("employeeId", "1234", new UserSettings {
LoginName = "domainAdmin",
Password = "adminPassword",
DomainName = "Cake.net" });
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
CakeNamespaceImportAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
propertyName |
string |
The name of the property to search by. |
propertyValue |
string |
The value of the property to search using. |
settings |
UserSettings |
The user attribute settings. |
Return Value