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