English 中文(简体)
获取联系人分配组
原标题:get contacts distributiongroups

我将创建一个脚本, 管理 Exchange 2010 上的联系人和用户, 并通过 Powershell 管理联系人和用户。 特别是我们试图获取联系人/ 用户的所有分发组 。

是否有办法获得联系人/用户的分发组?

最佳回答

使用Get-ADObject 使用联系符号( get-ADObject) 就可以做到这一点:

$contact = Get-MailContact domainnamecontactname
(Get-ADObject -Identity $contact.Guid -Properties  MemberOf ).MemberOf
问题回答

根据上面的命令,我犯了错误,接下来的一周为我工作。

(Get-ADObject -Identity $contact.Guid -Properties MemberOf | Select-Object MemberOf).MemberOf





相关问题
Exchange Server and SAS 9.1.3/9.2

has anyone successfully interacted with a microsoft exchange server in SAS 9.1.3 or 9.2? i know it can be done with SAS Ent. Guide 4.x, but i m not interested in that route if regular SAS can do it.

What is better practice for error notification by email

This question is language independent. I have an application that handles requests in a loop. During this loop for each request multiple actions are taken. These actions are sitting inside try / ...

getting access to outlook exchange global address book

i am building a csharp application and i would like a dropdown list of all users in my outlook global address book (the same one when i click on To: from outlook gui. is this possible to get this ...

Quitting Fasthosts and Need a Managed Email Provider

Fasthosts email service has been down all day so both us and our clients have been without email. Not really good news for a web development company. Even their site is down! After the fiasco the ...

热门标签