Remove partnership from provisioned mailbox without EXO

Stephan van den Heuvel 31 Reputation points
2022-10-18T09:02:20.263+00:00

Hello,

At our company we have replaced old school ActiveSync with the Outlook app, protected with Azure MFA conditional access.
This results in getting a kind of ghost mailbox in Exchange online, without an Exchange online license.
https://learn.microsoft.com/en-us/exchange/clients/outlook-for-ios-and-android/use-hybrid-modern-auth?view=exchserver-2019

No Exchange online, just Exchange 2019 on-prem and Azure AD Connect to sync on-prem AD to AAD.

For testing purposes I ran a wipe of my mobile device from the on-prem ECP, the Outlook app on my iPhone was succesfully wiped and the account deleted.

Now everytime I try to add that corporate account it's showing 'Downloading content', but nothing happens. At the same time in Exchange on-prem mailbox I receive an email stating 'data wiped succesfully, to synchronize again first delete this partnership.'.

There is a mobile device in the on-prem Outlook on the Web options and everytime I remove it, it appears back in a few minutes. Acces granted and successfully syncing. I know by now this is my Azure provisioned mailbox, which is contacting Exchange for a sync.
And I know by now that my Outlook app is connecting to this provisioned mailbox, not the on-prem mailbox.

So the main question is, how can I remove the Azure provisioned mailbox device partnership?

'Get-EXOMobileDeviceStatistics -UserPrincipalName user@principal.name' is showing a mobile device partnership with status DeviceWipeSucceeded.

So far I've tried:
Get-EXOMobileDeviceStatistics -UserPrincipalName user@principal.name | Remove-MobileDevice; Are you sure - Yes, but the partnership still exits.
Get-EXOMobileDeviceStatistics -UserPrincipalName user@principal.name | Clear-MobileDevice; nothing happens.
Set-User user@principal.name -PermanentlyClearPreviousMailboxInfo; nothing happens

Remember, we have no Exchange online.

Hopefully someone can point me in the right direction to fix this, many thanks.

Best regards,
Stephan

Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,960 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Andy David - MVP 143.8K Reputation points MVP
    2022-10-18T11:26:49.06+00:00

  2. Stephan van den Heuvel 31 Reputation points
    2022-10-24T07:59:57.297+00:00

    Hi all,

    Not the way I wanted it, but eventually I have fixed it by removing my account from AAD Sync which trashed my AAD account. Then I deleted my AAD account from the recycle bin.
    The EXO commands didn't return any info anymore, so the reset worked like a charm.
    After like half an hour I put my AD account back in the sync tool which created a new AAD account for me.
    After adding my account to the Outlook App, a new provisioned mailbox was created and nicely synced with Exchange.

    For those with the same challenge.... mind resetting MFA, licenses and apps.

    Best regards,
    Stephan

    0 comments No comments

  3. Joyce Shen - MSFT 16,646 Reputation points
    2022-10-25T06:23:11.073+00:00

    Hi @Stephan van den Heuvel ,

    Gald to know your issue is resolved now and thanks for sharing the solution! Since our forum has the policy that The question author cannot accept their own answer. They can only accept answers by others, and according to the scenario introduced here: Answering your own questions on Microsoft Q&A

    I would make a brief summary of this post so that other forum members could easily find useful information here:

    [Remove partnership from provisioned mailbox without EXO - Summary]

    Issue Symptom:
    After running a wipe of mobile device from the on-prem ECP, the Outlook app on iPhone was successfully wiped and the account deleted. When try to add that corporate account it's showing 'Downloading content', but nothing happens. At the same time in Exchange on-prem mailbox will receive an email stating 'data wiped successfully, to synchronize again first delete this partnership.'.

    Solution:
    Removing my account from AAD Sync which trashed my AAD account. Then I deleted my AAD account from the recycle bin. After half an hour put AD account back in the sync tool which created a new AAD account. Then adding the account to the Outlook App, a new provisioned mailbox was created and synced with Exchange.

    You could "Accept Answer" for this summary to close this thread, and your action would be helpful to other users who encounter the same issue and read this thread. Thanks for your understanding!


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Stephan van den Heuvel 31 Reputation points
    2022-11-29T07:27:54.297+00:00

    Hello,

    The actual question has not yet been answered, so again I ask how to remove an Azure provisioned mailbox device partnership?

    Removing my account from Azure did the trick, but... I lost all my data. Onenote notebook, Teams team memberships and chat history.
    Now I have other users who have all sorts of trouble with their Outlook app. I would like to start cleaning up mess.

    Best regards,
    Stephan

    0 comments No comments

  5. Jani Tahvanainen 0 Reputation points
    2023-08-30T12:42:52.8233333+00:00

    Hi,

    I got a couple of end users with the same problem, did you get a solution to this ?

    The cache has stopped synching to onprem after a certain date, nothing new comes into users Outlook app.

    Get-EXOMobileDeviceStatistics -UserPrincipalName user@principal.name | Remove-MobileDevice
    Get-EXOMobileDeviceStatistics -UserPrincipalName user@principal.name | Clear-MobileDevice

    Tried these, but nothing happens

    Removing the account is not an option.

    Regards
    Jani