$strclass="User"
$strname="cn=user1"
$objadsi=[ADSI]"LDAP://ou=test,dc=tech-jockey,dc=com"
$objuser=$objadsi.create($strclass,$strname)
$objuser.Put("sAMAccountName","user1")
$objuser.setinfo()
$strname="cn=user1"
$objadsi=[ADSI]"LDAP://ou=test,dc=tech-jockey,dc=com"
$objuser=$objadsi.create($strclass,$strname)
$objuser.Put("sAMAccountName","user1")
$objuser.setinfo()
No comments:
Post a Comment
Thanks for showing interest in tech-jockey.