Hey guys. I'm trying to work on a GUI that acts as a user control panel for Active Directory Management.
One of the first things that I'm trying to accomplish is adding a user. Here is my CreateUser() function:
Func CreateUser($userid, $firstname, $lastname)
$domain = $array_UserControl[1][1]
$suffix = $array_UserControl[2][1]
$cn = $array_UserControl[3][1]
$servername = $array_UserControl[4][1]
$defaultpassword = "apassword4u"
$objOU = ObjGet("LDAP://cn=" & $cn & ",dc=" &