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",fredf@test.local,fredf@test.local,login.bat,Yabba
I go to powershell, run "import-module activedirectory" then "Import-CSV C:\Users1.csv | New-ADUser"
It successfully adds the users but the issues I have are
1: it doesn't actually put in the "Account User login name" but does put in the pre 2000 name.
2: it doesn't put in the password
3: Even if I put in the Enabled field with the value $true they are still disabled
Any help would be appreciated