ActiveDirectoryAliases.

DeleteUser(ICakeContext, string, UserSettings) Method

Summary

Deletes user in the specified active directory.

Syntax

public static void DeleteUser(this ICakeContext context, string userPrincipalName, UserSettings settings)

Examples

DeleteUser("[email protected]", new UserSettings { 
    LoginName = "domainAdmin", 
    Password = "adminPassword", 
    DomainName = "Cake.net"});

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
userPrincipalName string The user principal name.
settings UserSettings The settings.

Return Value

Type Description
void