This is normally done if a 3rd Party email branding software like exclaimer or CodeTwo is being used.
Native to Office 365 (Exchange Online) there is a great way to prevent users from Enabling Signatures in OWA : Disable OWA Signatures.
First lets create a connection to Office 365 Powershell.
$UserCredential = Get-Credential
Next lets create a new PSSession
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
After Creating the new PSSession lets import it
Import-PSSession $Session
The shell will look as follow after the import
Now that we have a connection to #MSOffice365 , lets go ahead and run a script to view all Users with OWA email signatures.
Get-Mailbox -ResultSize Unlimited | Get-MailboxMessageConfiguration | Where-Object {$_.AutoAddSignature -Match “True”} | Select-Object AutoAddSignature,MailboxOwnerId
Results after running the fist script
Results of Users with OWA enabled signatures will display. We can now run the second script to remove all “AutoAddSignature” for all Mailbox’s
Get-Mailbox -ResultSize Unlimited | Set-MailboxMessageConfiguration -AutoAddSignature $false| Select-Object Name,AutoAddSignature
Hope you enjoyed the read !
Twitter: shaun.hardneck
Be First to Comment