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
Neally
(Neally)
January 19, 2018, 8:03pm
3
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.
Neally
(Neally)
January 19, 2018, 8:15pm
5
Hi, and welcome to the PowerShell forum!
Don’t apologize for being a “noob” or “newbie” or “n00b.” There’s just no need – nobody will think you’re stupid, and the forums are all about asking questions. Just ask!
Use a descriptive subject. Don't say "Need help" or "PowerShell Help", actually summarize what the problem is. It helps the rest of us keep track of which problem is which.
Don’t post massive scripts. We’re all volunteers and we don’t have time to read all that, nor will we copy, past…
A commonly asked question here is: "How Do I Learn PowerShell?". This sticky post presents common responses to that question with pointers to more details. Please read this post, and look at the resources before you ask questions in the forum as they might help to get you started with PowerShell! If there are missing great references, then please comment below - I add all good ones.
How do you learn best?
This a key question to learning most things. Since there are several ways of learning P…
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
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.
good to know, I thought i had to sync before I could make this change and resync.
1 Spice up
Jono
(Jono)
January 22, 2018, 3:55am
8
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