b_zajac
asked on
Creating Users in AD DS using Power Shell
PS C:\Users\Administrator> $objOU=[ADSI]("LDAP://OU=P eopel,DC=c ontoso,DC= com")
PS C:\Users\Administrator> $objUser=$objOU.Create("Us er","CN=Ma ry 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=M ary North")
+ CategoryInfo : NotSpecified: (:) [], ExtendedTypeSystemExceptio n
+ 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.
$objOU=[ADSI]("LDAP://OU=P eopel,DC=c ontoso,DC= com")
$objUser=$objOU.Create("Us er","CN=Ma ry North")
$objUser.Put("sAMAccountNa me","mary. north")
$objUser.SetInfo()
Regards,
B. Zajac
PS C:\Users\Administrator> $objUser=$objOU.Create("Us
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=M
+ CategoryInfo : NotSpecified: (:) [], ExtendedTypeSystemExceptio
+ 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.
$objOU=[ADSI]("LDAP://OU=P
$objUser=$objOU.Create("Us
$objUser.Put("sAMAccountNa
$objUser.SetInfo()
Regards,
B. Zajac
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER