To create a user in our Organizational Unit we need the following LDAP string: $LDAPStringUsers = "LDAP://OU=Demo Users, DC=contoso,DC=com" And run the following command to connect to AD: $usersOU = [ADSI] $LDAPStringUsers To create a user run this command:
Read More...