// NewADUser() // desc: Method calls PowerShellComponent command NewADUser, creates a user in ActiveDirectory only // params: Dictionary<string, string> attributes - Dictionary object, contains attributes for new user // method: public // return: string, XML string of ExchangeUser object public static string NewADUser(Dictionary<string, string> attributes) { PowerShellComponent.ManagementCommands objManage = null; string Results = null; try{ objManage = new PowerShellComponent.ManagementCommands(); Results = objManage.NewADUser(attributes); }catch (Exception e){ return e.Message; } objManage = null; return Results; }