|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WMI and ADHi 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 |
|||||||||||||||||||||||