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 ...
14th June 2009, 09:36 PM #1
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.
IDG Tech News
14th June 2009, 09:43 PM #2
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
14th June 2009, 09:57 PM #3
By ezzauk in forum Windows
Last Post: 25th September 2008, 02:02 PM
By timbo343 in forum Windows
Last Post: 12th September 2008, 10:34 AM
By ful56_uk in forum Windows
Last Post: 15th April 2008, 09:36 AM
By fawkers in forum Scripts
Last Post: 24th January 2008, 03:58 PM
By everton4europe in forum Windows
Last Post: 16th January 2008, 06:01 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)