Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.