Solved

Unable to remove domain from Office 365. Please help!

Posted on 2016-07-17
6
131 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
  • 3
  • 3
6 Comments
 
LVL 40

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 40

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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 40

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

810 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