Bulk creating Shared Mailboxes

Deleted
Not applicable

Hello Team,

 

I am in the process of creating bulk shared mailboxes (150) any body has any handy script already if so can you please share?

3 Replies
for($i=1; $i -le 150; $i++)

{
$Name="sharedmailbox"+$i

New-Mailbox -Shared -Name $Name -DisplayName $Name -Alias $Name
} 

Thanks Santosh.

 

copy and paste it to notepad and rename as .ps1 and run? that is it?

yes, it will work as .ps1 but need to run in exchange online connected powershell