Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Update Exchange 2010 Transport Rule From Text File Using Powershell
- #Sheldon Alman - sheldonalman at gmail.com
- if (test-path C:\sig.txt )
- {
- $signature = Get-Content "C:\sig.txt"
- set-TransportRule -Identity 'External Email Disclaimer' -Name 'External Email Disclaimer' -Comments 'Appends disclaimer to all email that is sent externally.' -ApplyHtmlDisclaimerLocation 'Append' -ApplyHtmlDisclaimerText $signature -ApplyHtmlDisclaimerFallbackAction 'Wrap'
- }
- else
- {
- write-eventlog -logname Application -source MSExchangeTransport -eventID 999 -entrytype Error -message "The signature script failed to run" -category 1 -rawdata 10,20
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement