Solved

Active Directory user creation -pwd is an unknown parameter

Posted on 2013-11-21
2
1,403 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
ID: 39666430
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
ID: 39666534
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mysterious disks wanting to be formatted 6 35
MS Endpoint Protection 2 18
Creating a Vendor Admin user 23 49
Run Secure WMI query from CentOS 5 23
Resolve DNS query failed errors for Exchange
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

813 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

9 Experts available now in Live!

Get 1:1 Help Now