Create Exchange 2010 mailboxes from CSV file


Sample CSV File with path: D:\test\testuser.csv

Lastname,Firstname,Name,UserPrincipalName,Password
Anderson,Richard,Richard Aderson,anderson.richardm@mydomain.com,Pa$$word

Exchange management shell [PS]

Import-CSV “D:\test\testuser.csv” | ForEach-Object { New-Mailbox -Lastname $_.”LastName” -Name $_.”Name” -FirstName $_.”FirstName”  -OrganizationalUnit ‘mydomain.com/Test’ -Database “ExchangeDB” -UserPrincipalName $_.”UserPrincipalName” -Password (ConvertTo-SecureString $_.password -AsPlainText -Force)}

Advertisements

About Robiul

Robiul has 15 years of continuous successful career experience in ICT with extensive background in System Engineering, IT infrastructure design, operations and service delivery, managing IT projects / MIS functions for local and multi-national companies with in-depth knowledge of multiple operating systems as well as construct / manage small to medium size Data Center. Proven ability to design and implement medium to semi-large scale LAN/WAN/WLAN and system infrastructures. Academic qualification: Master of Science in Information Systems. Professional certifications are: MCSE, CCNA, ITIL and FoundStone Security Professional, VCP, NetAPP, CISSP etc.
This entry was posted in Exchange and tagged . Bookmark the permalink.