Remove an Office 365 domain name by using PowerShell

Source: Internet
Author: User

Enter the Connect-msolservice command to connect to Office 365, and then enter the user name password

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/8e/12/wkiom1i01dqx13ucaaa_y0u0n8u652.png "height="/>

Enter the Get-msoldomain command to view the domain name used by the existing Office 365

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/8e/12/wkiom1i01drwqsmmaadw_kdmdxm706.png "height=" 169 "/>

When you delete a domain name, the domain name cannot be used as a suffix for users and groups

So use Get-msoluser-domainname 365test.top to see if 365test.top has users and groups using this domain name

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/8e/10/wkiol1i01dvt4h49aabeeptmbza451.png "height="/>

Enter a command remove-msoldomain remove a domain name

Fill out the domain name you want to delete at DomainName

Select Yes if you want to continue with this operation, enter Y or press ENTER

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/8e/10/wkiol1i01d2xxhyqaadakgms8jy805.png "height=" 175 "/>

Verify that the domain name is deleted, and then enter the Get-msoldomain command again to see the status of the current domain. There is no enterprise domain name indicates that the domain name has been deleted successfully

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/8e/10/wkiol1i01d7inwcvaacpkcxxnt0864.png "height=" 141 "/>

Remove an Office 365 domain name by using PowerShell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.