Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Unable to remove domain from Office 365. Please help!

Posted on 2016-07-17
6
Medium Priority
?
279 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 43

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 43

Accepted Solution

by:
Vasil Michev (MVP) earned 2000 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 43

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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…

722 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