create mailboxes from csv file. variable first name, sure name, password and Origanizational unit

By |2016-10-26T12:43:04+01:00January 18th, 2015|Exchange, Microsoft|

i had to create bulk mailboxes on exchange 2010 in my hosted environment, so i search on the internet for scripts and put them together to fit my environment. so i wanted to use, first name, surename, Display name, username, variable password and put the users in certain OU map in AD so my CSV file will look somehing like this fname,lname,username,password,OUPath els,konnick,els.konnick,Test123!,domain.local/customer/cust01 here is the script you can copy paste in a notepad and save it as .ps1 #csv file with fields:fname,lname,username,password,OUPath import-csv 'C:pathtocsvfileuserlist.csv' | Foreach-object { $Fname = $_.FName $LName = $_.LName $DisplayName = "$FName $LName" $User = [...]

Go to Top