Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Bulk import of users with unique passwords from a file

$
0
0

Hello.  I am new to Windows AD.  I am trying to import student accounts into AD from a csv file.  I was able to do that, but they all show up as disabled and they don't appear to have a password.  I need the password to be a specific for each user.  I have all the user information and passwords in the csv file mentioned earlier.  

I am using:

import-csv c:\file.csv : new-aduser    

the csv file contains the following headers:

Name,  GivenName, Surname, DisplayName, SamAccountName, Enabled, AccountPassword, UserPrincipalName, Path

Is it possible to accomplish this?  What am I missing?

Thanks.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>