Monday, May 16, 2011

Behind the scenes of RoomResources–Custom Properties

While using FIM and PowerShell to manage Exchange 2010 I was following along a wonderful article on resource mailboxes that left me wondering a few things.

1) Exactly how is the data stored in the msExchResourceDisplay and msExchResourceSearchProperties attributes?

2) How is it stored with multiple custom properties?

3) Is manipulating those AD attributes sufficient or is PowerShell storing something in the Exchange Data store?

Here are the answers:

image

1) msExchResourceDisplay = “Room,FlatScreenTV” It appears to be a single valued string with commas.

msExchResourceSearchProperties at first blush appears to be a single-valued string with semi-colons, however further examination reveals it to be a multi-valued attribute

image

2) What happens when multiple Resource Custom Properties are set?

image

msExchResourceDisplay = “Room,FlatScreenTV,Whiteboard”

image

So the new value is simply added to the old ones.

3) Is manipulating these AD attributes sufficient?

image

image

Now the reveal:

image

It works!

4) Well I came up with another question – What happens if the AD programmer forgets to manipulate both attributes?

image

If it is missing from Display but is in Search

image

Then it isn’t visible in the Address Book but a search returns it as a result:

image

6) so what if I put MountedProjector back in Display but it is missing from Search?

image

It shows up but a search for MountedProjector reveals nothing:

image

Whereas as search for Whiteboard:

image

No comments:

Post a Comment