Get the App
SLTechnology News&Howtos  ›  Servers  › 

Office365 deletes a custom field

Shulou Source: shulou.com Published: 2022-06-02 08:23:38 10月02日 Update

Office365 deletes a custom field

We have introduced a lot about Azure and Office365 features, today we focus on how to quickly delete custom fields, delete custom fields we need to introduce Azure Powershell to complete the whole operation. See the details below.

Download powershell

PowerShell connect to Windows Azure AD

Please open the following link directly, https://technet.microsoft.com/zh-cn/library/jj151815.aspx#bkmk_installmodule

If we delete it, it will indicate that a user is using it.

We delete the user prompt error

We need to stop the synchronization of the Active Directory when deleting the custom domain, and then prompt that the composition will take 72 hours to complete, so we use the powershell above to complete the forced deletion.

Please open Windows PowerShell, then enter the import-module msonline import module, enter the Connect-MsolService-AzureEnvironment "AzureChinaCloud" command, and connect to the Office365 background using PowerShell

Remove-MsolUser-UserPrincipalName u1@byssoft.com (fill in the email address of the user you need to delete in the × × part, and the purpose of this step is to delete the user) Remove-MsolUser-UserPrincipalName "davidchew@contoso.com"-RemoveFromRecycleBin (similarly, replace the × × part with the user you need to delete. The purpose of this step is to delete the user in the "deleted user", which represents the complete deletion of the user from your tenant).

We found that it had been deleted.

We then delete the rest of the users. Then you can see it after it has been deleted.

We're checking the status.

Delete completely

We finally confirm that the local user has been deleted.

Attempt to delete domain

Deletion completed

After completing the above command, you can delete the custom domain name.

The second method: change the user's UPN to the default domain name through powershell

Methods to connect to the background of Office 365, such as the steps in method 1

Set-MsolUserPrincipalName-UserPrincipalName u1@byssoft.com-NewUserPrincipalName u1@dkf.partner.onsmchina.cn (fill in the e-mail address of the user who occupies the custom domain name in green and the email address of the user you need to switch to the default domain name in gray) after completing the operation of switching UPN, please try to delete the custom domain name

Tags: User domain part address method mail prompt function background command domain name e-mail email toggle attempt input representative function hour time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Tech Info macOS OPPO Reno Docker