Solved

Active Directory user creation -pwd is an unknown parameter

Posted on 2013-11-21
2
1,357 Views
Last Modified: 2013-11-21
I'm trying to create a large number of users in Powershell on our Domain Controller and i am getting this error when trying to create just one: dsadd failed:'-pwd' is an unknown parameter

I have checked my dsadd line and it looks correct based on other internet searches but i cant get past this error. I know the password should be fine as it meets our complexity requirements. I will paste the line below for everyone to check out and see if they can pinpoint what is wrong. I changed the lines around to not have true data involved.

dsadd user cn=tuser,ou=TEST,dc=HostedAccounts,dc=TEST,dc=LOCAL -samid tuser -upn tuser@TEST.LOCAL -fn Test -ln User –pwd Testing123 -pwdneverexpires yes
0
Comment
Question by:MB_IT_Support
2 Comments
 
LVL 70

Accepted Solution

by:
KCTS earned 500 total points
Comment Utility
the - before pwd seems longer than the other dashes - is this the issue ?
if you've created the list is word its possible that the word autoformatting is to blame.
0
 

Author Comment

by:MB_IT_Support
Comment Utility
Yeah that is odd as in the editor it shows it as a Single character, however once i deleted and re-added it it shows as a single character and it works just fine.

Thank you.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Resolve DNS query failed errors for Exchange
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now