Advertisement
Advertisement
| 08.08.2008 at 10:48AM PDT, ID: 23633491 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: |
DirectoryEntry NewUser = contain.Children.Add("cn=NewUser", "MyCustomSchema");
NewUser.Properties["sAMAccountName"].Add("NewUser");
NewUser.Properties["Prop1"].Value = "*";
NewUser.CommitChanges();
// This line crashes the first time around
NewUser.Invoke("SetPassword", new object[] { "password" });
// Finish setting the user properties and commits
|