Defederating a domain from Offce 365

We are looking for ideas on getting Microsoft to defederate a domain.

We were looking to purchase Office 365 through GoDaddy. During that process, they asked if our domain had been federated previously to 365. Since we (here in IT) had made no conscious decision to do so, we said “no, it has not been federated.” We have three O365 accounts that are but was not affected by this. We purchased office 365 through GoDaddy. Our GoDaddy team got the message “ has already been used to setup an Office 365 account at Microsoft. Before you can create any new users here, you must remove and any associated accounts from your previous Office 365 account.” has already been used to setup an Office 365 account at Microsoft
We didn’t have any 365 accounts with so we opened a case with Office 365 support. The first tech found that someone at the firm, a year ago, created a Power BI account. The signup caused Office 365 to reserve our domain but never set it up as an actual tenant. This caused a shadow tenancy. The tech said this is a flaw on the Microsoft side and that he would have to escalate it. He had us log into our onmicrosoft account and run a Powershell script to defederate.

We connected to Exchange Online using

Then he had us run a modified version of this:

Set-Mailbox Identity -EmailAddress <NEW primary E-mail address>
Set-Mailbox identity -EmailAddresses @{Remove="<E-mail address>"}
Remove-MsolDomain -DomainName "" -Force

The message we got was “This operation couldn’t be performed because object ‘Identity’ couldn’t be found…”

This was no surprise to use since we never created an O365 account using a account. But support told us to try it, so we did.

They are not very responsive, and some don’t seem to fully understand the issue. Any ideas on how we can progress would be appreciated.
pbhcpaIT DirectorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
Your domain is NOT federated with O365. What the support guy probably meant is that it was used for the so-called "viral signup". You should follow the process detailed here to perform a "takeover":

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pbhcpaIT DirectorAuthor Commented:
Thank you. Internal Admin Takeover might work for us. We will give that a try and post the results.
pbhcpaIT DirectorAuthor Commented:
I was able to take over the domain, create another, create an account on the new domain, make it a global admin, then login and delete our domain. I also found out who it was who created the power BI account and deleted it. I assume some delay is to be expected so will check back in a few hours.
pbhcpaIT DirectorAuthor Commented:
So that did the trick. Internal takeover was the fix. There was a bit of a delay before GoDaddy was able to see that the domain could be used. Thanks for the help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.