troubleshooting Question

Creating Users in AD DS using Power Shell

Avatar of b_zajac
b_zajacFlag for United States of America asked on
Active DirectoryMicrosoft Legacy OSPowershell
3 Comments2 Solutions1482 ViewsLast Modified:
PS C:\Users\Administrator> $objOU=[ADSI]("LDAP://OU=Peopel,DC=contoso,DC=com")

PS C:\Users\Administrator> $objUser=$objOU.Create("User","CN=Mary North")

The following exception occurred while retrieving member "Create": "There is no such object on the server.


At line:1 char:10

+ $objUser= <<<< $objOU.Create("User","CN=Mary North")

    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException

    + FullyQualifiedErrorId : CatchFromBaseGetMember



I guess the question is what am i doing wrong? I know that is vague but i don't know how else to ask it. You can view the full text that i need to enter below in order to complete my assignment. Thanks for any help in advance.



$objUser=$objOU.Create("User","CN=Mary North")





B. Zajac

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros