I’m working for a MSP and we have a new client. They are using a Cloud Sync’d AD with O365 for Office license and also their exchange server. When we create a new account we setup as normal on a local server, sync to O365, then enable apply licenses this starts the email setup. When it finishes the email address is always listed as @.onmicrosoft.com then below it the alias is listed correctly @.com. Then we have to go into the attribute editor change the ProxyAddress then resync and it works but its a lot of trouble since we are doing new hires at least 3 times a week. Any way to do this faster?

Also sorry if I use the wrong terms, I’m kinda new to deal with this.

Thank you

8 Spice ups

If you create the user with a PowerShell script you can set the ProxyAddress attributes before the initial sync and not have to go back and change it later.

Here is a TechNet article on how I got started with this.

https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Create-Active-7e6a3978

-Eric

2 Spice ups

You might want to write a PowerShell script to do that for ya.

The Synctool uses by default the proxy address field of the user sent from AD, If that is blank in AD it will use domainname.onmicrosoft.com.

So you either write like a complete powershell script (to also create the AD user ) or you update that before you initiate the sync.

There are 2 ways to get a mailbox in o365, one is to create one locally and and migrate them, or use the command ‘enable-remotemailbox’, which triggers o365 to create a mailbox.

Also you can assign licenses and quotas as needed.

All very doable with PowerShell

3 Spice ups

Everyone thank you for your input.
I am going to work on learning more power shell.

https://community.spiceworks.com/programming/powershell

^ there ya go

1 Spice up

You don’t have to do this in PowerShell, you can get to the ProxyAddresses attribute within AD Users and Computers by enabling advanced view and then in the user you can set the value in the Attribute Editor tab within the user profile after you’ve created their user. This is how we do and then manually run an AD sync. PowerShell will work, but you can do it from a GUI if that’s easier.

1 Spice up

good to know, I thought i had to sync before I could make this change and resync.

1 Spice up

When using the attribute editor use ‘SMTP’ for the primary and ‘smtp’ for the secondary email address

1 Spice up

Do you have @domain.com set as your primary domain?

https://support.office.com/en-ie/article/domains-faq-1272bad0-4bd4-4796-8005-67d6fb3afc5a

How do I change the default domain in Office 365?

You must have at least one custom domain that you’ve added to Office 365 before you can choose a default domain.

Sign in to Office 365

Open the Domains page

On the Domains page, choose the domain you want to set as the default for new email addresses.

1 Spice up