Forum Discussion

Deleted's avatar
Deleted
Aug 29, 2016

Bulk creating Shared Mailboxes

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?

  • SanthoshB1's avatar
    SanthoshB1
    Bronze Contributor
    for($i=1; $i -le 150; $i++)
    
    {
    $Name="sharedmailbox"+$i
    
    New-Mailbox -Shared -Name $Name -DisplayName $Name -Alias $Name
    } 
    • Deleted's avatar
      Deleted

      Thanks Santosh.

       

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

      • SanthoshB1's avatar
        SanthoshB1
        Bronze Contributor
        yes, it will work as .ps1 but need to run in exchange online connected powershell 
         

Resources