标签:match force name email microsoft nec tor net pow
Connect-msolservice (输入全局管理员账号)
Get-MsolUser -DomainName msoffice.linkpc.net -all | Export-Csv d:\user.csv
Get-msolgroup -all | where {$_.proxyaddresses -match "msoffice.linkpc.net" } | Export-Csv d:\group.csv
Get-msolcontact -all | where {$_.emailaddress -match "msoffice.linkpc.net" } | Export-Csv d:\contact1.csv
Get-msolcontact -all | where {$_.ProxyAddresses -match "msoffice.linkpc.net" } | Export-Csv d:\contact2.csv
Get-MsolUser -DomainName msoffice.linkpc.net -all | remove-msoluser -force (用户被删除到已删除用户列表)
Get-MsolUser -ReturnDeletedUsers -all | Remove-MsolUser -RemoveFromRecycleBin -force (从已删除的用户列表里面讲用户永久删除)
Get-msolgroup -all | where {$_.proxyaddresses -match "msoffice.linkpc.net" } | remove-msolgroup -force (强制删除所有与该域名有关组)
Get-msolcontact -all | where {$_.emailaddress -match "msoffice.linkpc.net" } | remove-msolcontact -force (删除与域名有关的联系人)
Get-msolcontact -all | where {$_.ProxyAddresses -match "msoffice.linkpc.net" } | remove-msolcontact -force (删除与域名有关的联系人)
Remove-MsolDomain -DomainName msoffice.linkpc.net -force
标签:match force name email microsoft nec tor net pow
原文地址:http://www.cnblogs.com/gill/p/6680308.html