+ Post New Thread
Results 1 to 3 of 3
Coding Thread, Powershell Exchange 2007 help in Coding and Web Development; I am trying to configure a custom disclaimer using powershell, i have managed to get this working but does anyone ...
  1. #1
    maf_001's Avatar
    Join Date
    Feb 2008
    Posts
    51
    Thank Post
    2
    Thanked 12 Times in 10 Posts
    Rep Power
    16

    Powershell Exchange 2007 help

    I am trying to configure a custom disclaimer using powershell, i have managed to get this working but does anyone know the code for new line?
    I have highligted the line in red, when you use the wizard to create a disclaimer you can have it accross multiple lines but when using powershell i have not managed to do this,

    $DisclaimerText = This is a Disclaimer and i want this on two lines
    $Condition1 = Get-TransportRulePredicate FromMemberOf
    $Condition1.Addresses = @((Get-DistributionGroup $My Dissy groups"))
    $Exception = Get-TransportRulePredicate SubjectorBodyContains
    $Exception.Words = @($DisclaimerText)
    $Action = Get-TransportRuleAction ApplyDisclaimer
    $Action.Text = $DisclaimerText
    $Action.Font = "Arial"
    $Action.FontSize = "Smallest"
    $Action.FontColor = "Gray"
    New-TransportRule -Name "Custom Disclaimer" -Condition @($Condition1) -Exception @($Exception) -Action @($Action)

    Any help would be appriciated.

    Thanks

  2. #2

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,047
    Thank Post
    160
    Thanked 913 Times in 716 Posts
    Blog Entries
    3
    Rep Power
    271
    Here, this should help you out

    • `0 -- Null

    • `a -- Alert

    • `b -- Backspace

    • `n -- New line

    • `r -- Carriage return

    • `t -- Horizontal tab

    • `' -- Single quote

    • `" -- Double quote

  3. Thanks to EduTech from:

    maf_001 (14th June 2009)

  4. #3
    maf_001's Avatar
    Join Date
    Feb 2008
    Posts
    51
    Thank Post
    2
    Thanked 12 Times in 10 Posts
    Rep Power
    16
    Awsome thanks


SHARE:
+ Post New Thread

Similar Threads

  1. Exchange 2007 Powershell Help
    By ezzauk in forum Windows
    Replies: 0
    Last Post: 25th September 2008, 01:02 PM
  2. Replies: 0
    Last Post: 12th September 2008, 09:34 AM
  3. Upgrading exchange 2003 to Exchange 2007
    By ful56_uk in forum Windows
    Replies: 1
    Last Post: 15th April 2008, 08:36 AM
  4. Replies: 0
    Last Post: 24th January 2008, 02:58 PM
  5. Exchange 2007 sp1 just killed my exchange
    By everton4europe in forum Windows
    Replies: 3
    Last Post: 16th January 2008, 05:01 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •