Manage Email Addresses from PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-2145112%22%20slang%3D%22en-US%22%3EManage%20Email%20Addresses%20from%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2145112%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20a%20hybrid%20deployment%20of%20Exchange%20Online%20with%20Exchange%20Server%202019%20On-Prem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20had%20an%20issue%20where%20some%20accounts%20were%20not%20syncing%20their%20SIP%20address%20properly.%20Surprisingly%2C%20I%20found%20that%20I%20was%20now%20able%20to%20edit%20email%20addresses%20from%20the%20Exchange%20Online%20Admin%20Center.%20Whereas%20previously%2C%20we%20had%20to%20make%20the%20changes%20on-prem%20and%20wait%20for%20(or%20force)%20a%20sync.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUsing%20PowerShell%20would%20have%20gotten%20us%20through%20the%20SIP%20issue%20easily.%20However%2C%20we%20are%20still%20unable%20to%20manage%20email%20addresses%20via%20the%20Set-Mailbox%20cmdlet%20due%20to%20the%20write%20scope.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EObviously%2C%20the%20admin%20center%20is%20able%20to%20execute%20the%20commands.%20So%20I%20am%20wondering%20if%20anyone%20knows%20what%20commands%20the%20admin%20center%20is%20sending%20so%20that%20I%20can%20use%20those%20to%20script%20in%20PowerShell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20are%20screenshots%20of%20the%20success%20in%20the%20Admin%20Center%2C%20failure%20in%20PowerShell%2C%20and%20the%20script%20I%20wanted%20to%20run.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2145112%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ehybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2145613%22%20slang%3D%22en-US%22%3ERe%3A%20Manage%20Email%20Addresses%20from%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2145613%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20looks%20fishy%20to%20me%2C%20the%20(old)%20EAC%20uses%20PowerShell%20on%20the%20backend%20for%20most%20operations%2C%20so%20you%20should%20have%20the%20same%20experience.%20Then%20again%2C%20Microsoft%20might%20have%20changed%20something...%20best%20open%20a%20support%20case.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

We have a hybrid deployment of Exchange Online with Exchange Server 2019 On-Prem.

 

We had an issue where some accounts were not syncing their SIP address properly. Surprisingly, I found that I was now able to edit email addresses from the Exchange Online Admin Center. Whereas previously, we had to make the changes on-prem and wait for (or force) a sync.

 

Using PowerShell would have gotten us through the SIP issue easily. However, we are still unable to manage email addresses via the Set-Mailbox cmdlet due to the write scope.

 

Obviously, the admin center is able to execute the commands. So I am wondering if anyone knows what commands the admin center is sending so that I can use those to script in PowerShell.

 

Attached are screenshots of the success in the Admin Center, failure in PowerShell, and the script I wanted to run.

 

Any help would be greatly appreciated.

2 Replies

This looks fishy to me, the (old) EAC uses PowerShell on the backend for most operations, so you should have the same experience. Then again, Microsoft might have changed something... best open a support case.

Yeah, that was my understanding, as well. I figured Microsoft must have changed something recently, because it IS working from the EAC.

I'll go ahead and open up a case.

Thanks.