Import Active Directory distribution lists from a CSV PowerShell script that imports distribution lists from a CSV file.
- Launch Exchange Management Shell from the Start menu.
- Place the distribution lists .csv file within the same directory as the script.
- Download and run the appropriate version of the script below.
This script will create Distribution Lists within a top level OU of the domain called Imported Distribution Lists.
Note: This script may need to be run twice if there are Distribution Lists that are members of a parent Distribution List. In such a circumstance, this will result in an attempt to be added before the creation of the parent Distribution List. Running this script twice will only attempt to perform an operation that failed previously. This script does not override existing values.