ActiveDirectoryAliases.

DisableUser(ICakeContext, string, string, UserSettings) Method

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

Type Description
void