6/12/2023 0 Comments Remove domain from office 365![]() We want to check all accounts that are using the domain that we are planning to remove, and to do that we can use the following cmdlet. When running Get-MSOLUser cmdlet we will have a list of all users of the subscription, we can check that there are some using the domain that we want to remove and some using the default domain which ends with. Set-MSOLDirSyncEnabled –EnableDirSync $False We can do that by running the following cmdlet, and we can repeat the previous cmdlet to check the change on the status of the replication. Get-MSOLCompanyInformation | Select DirectorySynchronizationEnabledīefore starting the process to remove the objects, we need to stop the synchronization configuration. We know for a fact that we had synchronization going between that subscription and our on-premises environment, and we can check if it is still enabled running the following cmdlet. To check the load modules, we can useĪfter importing the module, we need to connect to the service, we will use the Connect-MSOLService cmdlet and fill out the credentials. ![]() The second step, is to import the module that we have just installed using the cmdlet below. ![]() The first step is to install the Microsoft Online module in PowerShell, we can do that by using the following command line and hitting Y when requested. If you are in this situation, the best way is using our old good friend PowerShell to remove the objects, and then return to the Office 365 Admin Console to remove the domain.
0 Comments
Leave a Reply. |