Solved

Unable to remove domain from Office 365. Please help!

Posted on 2016-07-17
6
202 Views
Last Modified: 2016-07-17
In the middle of an Office 365 to Office 365 migration. Client has lots of domains and I have moved most of them. Last (and of course, main!) domain still in the old Tenant. Last two domains:
1.JPGWhen I try to remove the client's domain:
2.JPGSo, running powershell and there is nothing with the clients domain:
3.JPGDoing a little digging I have found one item which seems to be some kind of external user who some has shared content with:
4.JPG
I cannot seem to remove this item

Any ideas?

This is holding up the whole migration!!

Thanks
Mark
0
Comment
Question by:Mark Galvin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 41

Expert Comment

by:Vasil Michev (MVP)
ID: 41715872
Apart from email aliases, you need to also check UPNs, SIP addresses, other services. There's a script that can help you with that on TechNet: https://gallery.technet.microsoft.com:443/How-to-remove-a-custom-6fe91693
0
 
LVL 41

Accepted Solution

by:
Vasil Michev (MVP) earned 500 total points
ID: 41715875
Oh, and to remove the external user, use Remove-MsolUser, then remove him from the recycle bin as well. You can check all of them via:

Get-MsolUser | ? {$_.UserType -eq "Guest"}

Open in new window

0
 
LVL 13

Author Comment

by:Mark Galvin
ID: 41715887
Hi Vasil

I was able to remove other domains where accounts held @domain as secondary email addresses so im 99% convinced that its this odd external user.

Running the Get-MsolUser | ? {$_.UserType -eq "Guest"} I get:
Get-MsolUser : An error occurred during authentication. Please retry your operation. If this problem persists, contact Technical Support.
At line:1 char:1
+ Get-MsolUser | ? {$_.UserType -eq "Guest"}
+ ~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Microsoft.Onlin...omation.GetUser:GetUser) [Get-MsolUser], WindowsLiveException
    + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.WindowsLiveException: An error occurred during authentication. Please retry your ope
   ration. If this problem persists, contact Technical Support.
   at Microsoft.Online.Administration.Automation.LiveIdentityManager.GetAuthenticationStatus(String siteName)
   at Microsoft.Online.Administration.Automation.LiveIdentityManager.LogonPassport(String policy, String siteName)
   at Microsoft.Online.Administration.Automation.ConnectMsolService.UpdateLiveToken()
       at Microsoft.Online.Administration.Automation.BecWebServiceProxyRetryAction.CheckRetry(Exception exception, Int32 sleepTime, MsolCmdlet currentCmdlet)

   at Microsoft.Online.Administration.Automation.RetryManager.CheckRetry(Exception exception, Int32 sleepTime, MsolCmdlet currentCmdlet)
       at Microsoft.Online.Administration.Automation.CommonFunctions.InvokeWebServiceMethodWithRetry(String methodName, Request request, MsolCmdlet currentCm
   dlet, Boolean fromRetry, Boolean fromBindingRedirection)
   at Microsoft.Online.Administration.Automation.GetUser.GetList(SearchDefinition searchDefinition)
       at Microsoft.Online.Administration.Automation.MsolCmdlet.ProcessList(SearchDefinition searchDefinition, Int32 maxResultsSize),Microsoft.Online.Adminis
   tration.Automation.GetUser

Open in new window


Any ideas on trying to discover what object type it is?
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 41

Expert Comment

by:Vasil Michev (MVP)
ID: 41715908
The error message above is connectivity issue, not related to the cmdlet.

In any case, run the script or do a simple

Get-MsolUser -DomainName domain.com

Open in new window


to find any remaining objects.
0
 
LVL 13

Author Comment

by:Mark Galvin
ID: 41715915
You're a genius!!
5.JPG
0
 
LVL 13

Author Closing Comment

by:Mark Galvin
ID: 41715916
Nice one Vasil!! Guest user removed and so is the Clients domain!
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question