As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)
Update Active Directory User attributes from CSV
This script will feed data from CSV file to Active directory user attributes.
I have included two scripts one will overwrite the existing data & other will only write if existing attributes are blank.
Prerequisites:- quest management tools should be installed.
CSV format:- This is attached along with the script.
Just extract the attached zip file & run the appropriate script.
for country & country codes use the right Names / codes
http://www.dovestones.com/country-codes-used-active-directory
set-executionpolicy unrestricted (in powershell, if its giving error that script is not signed or sign the script)
run the script as —-> PS D:\FeedAD> .\FeedAD-NOOverWrite.ps1 .\Users.csv
Pls rate the contribution if it worked for you.
download Quest Management Shell (its a free shell) –> http://www.quest.com/powershell/activeroles-server.aspx
Thanks for reading and downloading…
Tech Wizard
Hi,
I was testing this script, but its not adding the email address, when i edit the script, i dont see any line for adding email address. Is it made so it adds from Exchange only?
Email attributes should not be edited directly from AD, these come from Exchange.
Pingback: Update Active Directory User attributes from CSV | Tech Wizard