I'm going round in circles and hoping someone can point me in the right direction...
I have created a .csv file as follows
SamAccountName,Name,GivenName,Surname,DisplayName,Type,Path,Logon Name,UserPrincipleName,ScriptPath,Password fredflinstone,Fred Flinstone,Fred,Flinstone,Fred Flinstone,User,"CN=users,DC=Test,DC=local",firstname.lastname@example.org,email@example.com,login.bat,Yabba
I go to powershell, run
import-module activedirectory Import-CSV C:\Users1.csv | New-ADUser
It successfully adds the users but the issues I have are
- it doesn't actually put in the
Account User login namebut does put in the pre 2000 name.
- it doesn't put in the password
- Even if I put in the Enabled field with the value $true they are still disabled
Any help would be appreciated