我需要授予几个用户对某些邮箱的读取权限。并且我需要通过自动映射将只读邮箱显示在用户的 Outlook 中。
我知道您可以通过 Active Directory 中的 mxExchDelegateListLink 属性实现此目的。但是,这不适用于 Office 365 和 DirSync。
我发现,您可以使用以下命令在 PowerShell 中查看该属性:
(Get-MailboxPermission <mailbox> -ReadFromDomainController)[0].DelegateListLink
它列出了 Outlook 将自动映射查询的邮箱的所有用户。
如何通过 PowerShell 将用户添加到该属性?此属性对于每个 MailboxPermission 对象都是相同的,因此您可能无法单独编辑该属性。
答案1
我认为无法通过 Exchange Management Shell 设置 DelegateListLink。如果您检索此属性的可能方法和属性,则不存在类似 SetValue 的方法:
Get-MailboxPermission <mailbox> -ReadFromDomainController)[0].DelegateListLink | Get-Member
TypeName: Microsoft.Exchange.Data.Directory.ADObjectId
Name MemberType Definition
---- ---------- ----------
AncestorDN Method Microsoft.Exchange.Data.Directory.ADObjectId AncestorDN(int generation)
DescendantDN Method Microsoft.Exchange.Data.Directory.ADObjectId DescendantDN(int depth)
Equals Method bool Equals(System.Object obj), bool Equals(string objString), bool Equals(Microsoft.Ex...
GetAdNameAtDepth Method Microsoft.Exchange.Data.Directory.AdName GetAdNameAtDepth(int depth)
GetByteCount Method int GetByteCount(System.Text.Encoding encoding)
GetBytes Method byte[] GetBytes(), byte[] GetBytes(System.Text.Encoding encoding)
GetChildId Method Microsoft.Exchange.Data.Directory.ADObjectId GetChildId(string unescapedCommonName), Mi...
GetDescendantId Method Microsoft.Exchange.Data.Directory.ADObjectId GetDescendantId(string unescapedChildName,...
GetHashCode Method int GetHashCode()
GetType Method type GetType()
IsDescendantOf Method bool IsDescendantOf(Microsoft.Exchange.Data.Directory.ADObjectId rootId)
ToCanonicalName Method string ToCanonicalName()
ToDNString Method string ToDNString()
ToExtendedDN Method string ToExtendedDN()
ToGuidOrDNString Method string ToGuidOrDNString()
ToString Method string ToString()
TraceTo Method System.Void TraceTo(Microsoft.Exchange.Diagnostics.ITraceBuilder traceBuilder)
Depth Property System.Int32 Depth {get;}
DistinguishedName Property System.String DistinguishedName {get;}
DomainId Property Microsoft.Exchange.Data.Directory.ADObjectId DomainId {get;}
IsDeleted Property System.Boolean IsDeleted {get;}
IsRelativeDn Property System.Boolean IsRelativeDn {get;}
Name Property System.String Name {get;}
ObjectGuid Property System.Guid ObjectGuid {get;}
Parent Property Microsoft.Exchange.Data.Directory.ADObjectId Parent {get;}
Rdn Property Microsoft.Exchange.Data.Directory.AdName Rdn {get;}