Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"Property 'CustomAttribute' is not present on object Mailbox" error when you run the New-ManagementScope cmdlet


View products that this article applies to.

Symptoms

Assume that you create an exclusive management scope, and you use the CustomAttribute property to filter users by using the New-ManagementScopecmdlet. For example, you run the following command:

New-ManagementScope -name Test-RecipientRestrictionFilter {(RecipientType -eq 'usermailbox' -and CustomAttribute10 -eq 'X')} -Exclusive 
In this situation, you receive the following error message:

Property 'CustomAttribute <number>' is not present on object Mailbox.

↑ Back to the top


Cause

This problem occurs because the CustomAttributes property is not supported by the New-ManagementScope cmdlet.

↑ Back to the top


Resolution

To resolve this issue, use the Memberof property instead of CustomAttribute in the New-ManagementScope cmdlet.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3087665
Revision : 1
Created on : 1/7/2017
Published on : 8/26/2015
Exists online : False
Views : 206