Solved

Active Directory user creation -pwd is an unknown parameter

Posted on 2013-11-21
2
1,466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
A hard and fast method for reducing Active Directory Administrators members.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

752 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