症状
假定您创建专用的管理范围,并通过新建 ManagementScope使用CustomAttribute属性来筛选用户cmdlet。例如,您可以运行下面的命令︰
New-ManagementScope -name Test-RecipientRestrictionFilter {(RecipientType -eq 'usermailbox' -and CustomAttribute10 -eq 'X')} -Exclusive 在此情况下,您将收到以下错误消息︰
属性 'CustomAttribute < 数量 > 不是邮箱对象存在的。
原因
由于新建 ManagementScope cmdlet 不支持CustomAttributes属性,将出现此问题。
解决方案
若要解决此问题,请用的Memberof属性而不是CustomAttribute New ManagementScope cmdlet。