private void AddUser (string strDoamin, string strLogin, string strPwd) {DirectoryEntry obDirEntry = null; try {obDirEntry = new DirectoryEntry ( "WinNT: //" strDoamin); DirectoryEntries entries = obDirEntry.Children; DirectoryEntry obUser = entries.Add ( Strlogin, "User"; Obuser.properties ["fullname"]. Add ("amigo"); object obret = Obuser.invoke ("setPassword", strpwd); obuser.commitchanges ();} catch (exception ex) { }