Exchange 搜索非组织架构非空邮件组

Get-ADGroup -Filter {GroupCategory -eq "Distribution" } -Properties members,mail,description | Where-Object {$_.members } | %{
if (($_.distinguishedName).contains("OU=xxxxx,DC=xxxxx,DC=xxxxxx")){
#####标记的OU为在职人员OU路径
}

else{
Get-ADGroup -Filter {mail -eq $_.mail} -Properties members,mail,description | Select-Object name,mail,description,members

}

}

Exchange 搜索非组织架构非空邮件组

上一篇:Oracle 存储过程定义和优点及与函数区别


下一篇:Oracle 12c In Memory Option初探