如何获取邮件联系人所属的所有组? [英] How to get all groups that a mail-contact belongs to?
本文介绍了如何获取邮件联系人所属的所有组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此代码将查找特定电子邮件帐户或mail-user
帐户所属的所有组.
This code will find all groups to which a particular email account or mail-user
account belongs.
get-group | where-object -FilterScript {$_.Members -contains $user}
但是,在O365中,您可以拥有mail-contacts
而不是用户-他们仅用于邮件列表;他们没有windowsliveid
,因此不会在$_.Members
中找到.
However, in O365 you can have mail-contacts
who are not users - they are used just for mailing lists; they don't have a windowsliveid
, so they won't be found in $_.Members
.
如何找到特定mail-contact
所属的所有组?
How can I find all groups that a particular mail-contact
belongs to?
推荐答案
查看全文