Connect-msolservice (輸入全局管理員帳號) shell
Get-MsolUser -DomainName msoffice.linkpc.net -all | Export-Csv d:\user.csv dom
Get-msolgroup -all | where {$_.proxyaddresses -match "msoffice.linkpc.net" } | Export-Csv d:\group.csv .net
Get-msolcontact -all | where {$_.emailaddress -match "msoffice.linkpc.net" } | Export-Csv d:\contact1.csv rem
Get-msolcontact -all | where {$_.ProxyAddresses -match "msoffice.linkpc.net" } | Export-Csv d:\contact2.csv 域名
Get-MsolUser -DomainName msoffice.linkpc.net -all | remove-msoluser -force (用戶被刪除到已刪除用戶列表) email
Get-MsolUser -ReturnDeletedUsers -all | Remove-MsolUser -RemoveFromRecycleBin -force (從已刪除的用戶列表裏面講用戶永久刪除) service
Get-msolgroup -all | where {$_.proxyaddresses -match "msoffice.linkpc.net" } | remove-msolgroup -force (強制刪除全部與該域名有關組) csv
Get-msolcontact -all | where {$_.emailaddress -match "msoffice.linkpc.net" } | remove-msolcontact -force (刪除與域名有關的聯繫人) 文件
Get-msolcontact -all | where {$_.ProxyAddresses -match "msoffice.linkpc.net" } | remove-msolcontact -force (刪除與域名有關的聯繫人) vi
Remove-MsolDomain -DomainName msoffice.linkpc.net -force