Hi everyone,
I followed Video: How to Bulk Create Mailboxes in Exchange 2013 - NetoMeter Blog to create 100 mailboxes. The script that I have used is:
# Import data from the CSV file and store it in variable "$data" $data = import-csv $args[0] # Get the Active Directory FQDN of the current user # You can specify it explicitly, if needed - ex. $FQDN = "netometer.local" $FQDN = $env:userdnsdomain # Cycle through each row from the CSV and feed the column values into variables # We also encrypt the password, as the "New-Mailbox" command does not accept plain text value foreach ($i in $data) { $name = $i.Name $upn = $name + "@" + $FQDN $encryptedpass = ConvertTo-SecureString -AsPlainText $i.Password -Force New-Mailbox -Name $name -UserPrincipalName $upn -Password $encryptedpass }
Mailboxes get created. The mailboxes opens and emails are also being sent and received from those 100 mailboxes. But I can't import pst to them. The status of Get-MailboxImportRequest always shows as Queued. I can export mailbox but the problem is in importing mailbox. It works right when I create mailboxes manually using ecp and import pst. What could be the problem? I am using on-premises Exchange 2013. The csv file have two columns: Name and Password.
Thanks & regards,
Talib Hussain