|
Create new user account Hi,
I'm trying to create new user in AD.
$ou=[ADSI]"LDAP://ou=myUsers,dc=test,dc=com"
$user = $ou.Create("user","cn="User1")
$user.Put("sAMAccountName", "User1")
$user.SetInfo()
But this only creates disabled user (without password).
How can I set password and enable this user?
Also how can I add user to some group?
Krunoslav |