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
Thank you.