0

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?

Graham Hill
  • 401
  • 2
  • 3

1 Answers1

0

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....

Graham Hill
  • 401
  • 2
  • 3