code_junkie

Memory Limits

Nov 13th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. using(DirectoryEntry newUser = root.Children.Add("LDAPPATH"))
  2. {
  3. //Assign properties to the newUser
  4. newUser.CommitChanges();
  5. //write the new username to a file using a streamwriter.
  6. }
Add Comment
Please, Sign In to add comment