Skip navigation
Email Disclaimer with Office 365 PowerShell

How to Add Disclaimer to All Outgoing Emails in Office 365 with PowerShell

Disclaimers are legal statements that are added to all outgoing emails. We have already seen in one of the articles that how we can add disclaimer with outgoing emails outside the organization. In this article, we will do the same but with PowerShell.

Step-By-Step

1. Open PowerShell with elevated privileges and execute the following command to create a session with Exchange Online.

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $cred -Authentication Basic -AllowRedirection

Import-PSSession $Session

2. When you have created the session with Exchange Online, create a disclaimer as shown below.

New-TransportRule -Name ExternalDisclaimer -SentToScope 'NotInOrganization' -ApplyHtmlDisclaimerText "<h3>Disclaimer Title</h3><p>This is the disclaimer text.</p><img alt='Contoso logo' src='http://www.contoso.com/images/logo.gif'>"

xxxxx emaildisclaimerwitho365powershell.png

link image to

http://windowsitpro.com/site-files/windowsitpro.com/files/uploads/2017/07/17/emaildisclaimerwitho365powershell_0.png

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish