locked
shared mailbox RRS feed

  • Question

  • Hi Team,

    Please help me 

    I need a script to create shared mailbox  around 1000.

    please provide the script


    Satish Chaturvedi Mob-9990806001

    Friday, May 15, 2020 4:14 AM

Answers

  • I need a script to create shared mailbox  around 1000.

     

    Hi Satish,

    Do you mean you would like to create around 1000 shared mailbox in bulk? If this is the case, I tested with the CSV format and cmdlet in your previous reply and it worked fine.  

    Additionally, if you want to grant permissions at the same time, you may refer to the sample below:


    Import-Csv "C:\sharedtest.csv" | foreach {New-Mailbox -shared -Name $_.name -DisplayName $_.displayname -Alias $_.alias -PrimarySmtpAddress $_.PrimarySmtpAddress ; Add-ADPermission -Identity $_.name -User $_.sendas -ExtendedRights "Send As" ; Add-MailboxPermission $_.name -User $_.fullaccess -AccessRights FullAccess -InheritanceType All}

    Please have a go and feel free to let us know if you need further assistance on this.

    Regards,

    Yuki Sun


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Monday, May 18, 2020 7:17 AM

All replies

  • Hi Sathish,

    Shared Mailbox Creation

    New-Mailbox -Shared -Name "ShareMBX" -DisplayName "ShareMBX" -Alias MBXName

    With Permission

    | Set-Mailbox -GrantSendOnBehalfTo <Specify> | Add-MailboxPermission -User <Specify> -AccessRights FullAccess -InheritanceType All

    Hope you have 1000 Shared mailbox name in csv. import in powershell and use foreach to create this.

    Friday, May 15, 2020 4:26 AM
  • Please check this is a correct CMD ?

    The CSV format is:

    name

    displayname

    alias

    primarysmtpaddress

    shared1

    Shared 1

    *** Email address is removed for privacy ***

    *** Email address is removed for privacy ***

    The powershell command I am using is:

    Import-Csv "C:\SharedMailbox.csv" | foreach-object { New-Mailbox -shared -Name $_.name -DisplayName $_.displayname -Alias $_.alias -PrimarySmtpAddress $_.PrimarySmtpAddress}

    The resulting mailbox is:

    Name : shared1

    Email : *** Email address is removed for privacy ***

    Email Alias : *** Email address is removed for privacy ***

     


    Satish Chaturvedi Mob-9990806001

    Friday, May 15, 2020 5:04 AM
  • Hope you got the solution.! Still, any question?
    Friday, May 15, 2020 7:02 AM
  • I need a script to create shared mailbox  around 1000.

     

    Hi Satish,

    Do you mean you would like to create around 1000 shared mailbox in bulk? If this is the case, I tested with the CSV format and cmdlet in your previous reply and it worked fine.  

    Additionally, if you want to grant permissions at the same time, you may refer to the sample below:


    Import-Csv "C:\sharedtest.csv" | foreach {New-Mailbox -shared -Name $_.name -DisplayName $_.displayname -Alias $_.alias -PrimarySmtpAddress $_.PrimarySmtpAddress ; Add-ADPermission -Identity $_.name -User $_.sendas -ExtendedRights "Send As" ; Add-MailboxPermission $_.name -User $_.fullaccess -AccessRights FullAccess -InheritanceType All}

    Please have a go and feel free to let us know if you need further assistance on this.

    Regards,

    Yuki Sun


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Monday, May 18, 2020 7:17 AM
  • Hi Satish,

    Just checked in to see how everything is going with this issue? Was the script above useful?

    Regards, 

    Yuki Sun


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Tuesday, May 26, 2020 9:54 AM