Home All Groups Group Topic Archive Search About
Author
21 Apr 2006 8:06 PM
Marek
Hi all,
I have questation about add user to active direcory . I have code :
System.Management.ManagementClass micc = new
ManagementClass("\\\\furoladnt2\\root\\directory\\LDAP:ds_user");
micc.Scope.Options.Password = "xxxxx";
micc.Scope.Options.Username = "Administrator";
System.Management.ManagementObject mcoo = micc.CreateInstance();
mcoo.SetPropertyValue("ADSIPath","LDAP://CN=Jtka
M,OU=Restriction,OU=Organization Users,DC=ROLAD,DC=ULAD"); PutOptions puss =
new PutOptions(); puss.Type = PutType.UpdateOrCreate; mcoo.Put(puss); but
after put , the wmireturn general error ... Where I get kye parameters for
succesfuly adding etc. user ? thanx

AddThis Social Bookmark Button