Office 365 - Add SMTP Address, but also change alias to be <firstinitial><lastname>@domain.com RRS feed

  • Question

  • Hello, complete noob here,

    I received a request to add an alias for all accounts on Office 365. 

    I found this script that does just that: https://github.com/cunninghamp/Add-SMTPAddresses.ps1

    However I need to rename the alias to <firstinitial><lastname>@domain.com

    To isolate the firstname and lastname I've used this: 

    get-mailbox -resultsize unlimited | get-user | Select-Object firstname, lastname

    my thought was to maybe integrate that into the script. Or would it be better to import a csv file somehow?

    Any help would be greatly appreciated!


    • Moved by Bill_Stewart Tuesday, December 11, 2018 9:07 PM Abandoned
    Thursday, July 19, 2018 5:30 PM

All replies

  • more than 500 mailbox's?

    365 only or is it a hybrid setup?

    Thursday, July 19, 2018 5:47 PM
  • Less than 100 mailboxes, 365 only. I can give you more information if you need.

    Thursday, July 19, 2018 9:07 PM
  • just do it by hand; i see no reason you would have to re-do this process in the future.
    Thursday, July 19, 2018 9:09 PM