// user.Invoke("SetPassword", new object[]{passWord}); user.CommitChanges(); user.Invoke("SetPassword", new object[]{passWord}); user.CommitChanges(); //This enables the new user. user.PropertIEs["userAccountControl"].Value = 0x200; //ADS_UF_NORMAL_ACCOUNT user.CommitChanges();
//Obtain the IMailboxStore interface, create the mailbox, and commit the changes. mailbox = (IMailboxStore)user.NativeObject; mailbox.CreateMailbox(homeMDB); user.CommitChanges();