Home

Bulk creating Shared Mailboxes

%3CLINGO-SUB%20id%3D%22lingo-sub-7925%22%20slang%3D%22en-US%22%3EBulk%20creating%20Shared%20Mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7925%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20in%20the%20process%20of%20creating%20bulk%20shared%20mailboxes%20(150)%20any%20body%20has%20any%20handy%20script%20already%20if%20so%20can%20you%20please%20share%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7936%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20creating%20Shared%20Mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7936%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22PD%20IF%22%3E%3CDIV%20class%3D%22JL%22%3E%3CDIV%20class%3D%22Mu%20SP%22%3Eyes%2C%20it%20will%20work%20as%20.ps1%20but%20need%20to%20run%20in%20exchange%20online%20connected%20powershell%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22ci%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7934%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20creating%20Shared%20Mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7934%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Santosh.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecopy%20and%20paste%20it%20to%20notepad%20and%20rename%20as%20.ps1%20and%20run%3F%20that%20is%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7933%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20creating%20Shared%20Mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7933%22%20slang%3D%22en-US%22%3E%3CPRE%3Efor(%24i%3D1%3B%20%24i%20-le%20150%3B%20%24i%2B%2B)%0A%0A%7B%0A%24Name%3D%22sharedmailbox%22%2B%24i%0A%0ANew-Mailbox%20-Shared%20-Name%20%24Name%20-DisplayName%20%24Name%20-Alias%20%24Name%0A%7D%20%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
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