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!
Thanks!