Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

A colleague is implementing an application that generates signatures and publishes them to Outlook. It would be useful to him if I could store a multi-line string for each user in Active-Directory.

Using one of the Custom-Attributes seems obvious, but if I try

set-mailbox biglig -CustomAtribute1 "First Line``r``n Second Line"

then CustomAttribute1 gets set to "FirstLineSecondLine" and looses the breaks. However, the same syntax works fine when I set e.g. StreetAddress or Notes. Of course, those are changed with set-user rather than set-mailbox. According to Technet's reference for set-user and set-mailbox, The CustomAttributes, StreetAddress, and Notes all take a system.string as their value.

Is it just the case that some attributes accept multi-line strings and some don't? If so, can anyone suggest a workaround?

share|improve this question

1 Answer 1

One possible workaround has occurred to me the minute I hit post.

As I understand it, my colleague needs a maximum of 6 lines, so I guess I could give him CustomAttribute1..CustomAttrbute6, and have him glue them together at his end.

Of course, that's a lot of attributes to burn on one project....

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.