Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Office365 deletes a custom field

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report