Description
You have installed Exclaimer Cloud - Signatures for Microsoft 365, but some of your users still have manually created signatures within Microsoft Outlook. You want to delete their existing Outlook signatures.
Resolution
There are multiple ways to delete users' existing signatures - please click on the required options listed below to go through the detailed description:
To delete the signatures manually:
- Open Microsoft Outlook.
- Navigate to the File menu, then select Options.
- Click Mail, then select Signatures.
Example:
- Select the signature you wish to delete and click Delete.
Example:
- Click Yes to confirm.
This option is suitable for organizations that have enabled client-side signatures and have installed the Exclaimer Cloud Signature Update Agent on the users' machines.
To use the Exclaimer Cloud Signature Update Agent to delete the signatures:
- Log into the Exclaimer Cloud portal.
- Enable the option Remove all existing signatures from Outlook as per the steps described here: Exclaimer Cloud Signature Update Agent to delete the signatures.
- Wait up to 1 hour.
The manually created signatures will be removed from all machines where the Exclaimer Cloud Signature Update Agent is installed.
This option is suitable for Azure AD-joined machines, and users sign in with their Azure AD accounts.
A PowerShell script to delete signatures is necessary for this option.
Here is an example of a basic PowerShell script which will backup and then delete the signature files:
.DESCRIPTION
This script is designed to be deployed by Microsoft Endpoint Manager or by Group Policy to delete signature files from a machine for the logged-in user.
.NOTES Date:
23rd January 2023.
.PRODUCTS Exclaimer Cloud - Signatures for Office 365.
.USAGE
Check that the variables $SignaturesFolder and $SignaturesBackupFolder are set to the best values for your organisation. The backup of the signature files is optional can can be removed if desired.
#>
#Declaring Signatures folder location $SignaturesFolder = "$env:APPDATA\Microsoft\Signatures" #Declaring Signature backup folder location $SignaturesBackupFolder = "$env:APPDATA\Microsoft\SignaturesBackup" #Backup Existing signature files If (! (Test-Path -path "$SignaturesBackupFolder")){ Copy-Item -Path "$SignaturesFolder" -Destination "$SignaturesBackupFolder" -Recurse
}
#Delete original signature files
Get-ChildItem -Path "$SignaturesFolder" -Include *.* -Recurse | foreach { $_.Delete()}
Save the above script as a PowerShell file; for example DeleteSignatures.ps1.
- Browse to the Microsoft Endpoint Manager and sign in.
- From the left-hand pane, click Devices. From the right-hand pane, select Scripts, then click Add. Select Windows 10 and later.
Example: - Give the script a name; for example: Delete Signatures.
- Click Next.
- In Script location, select your PowerShell script file.
- In Run this script using the logged-on credentials, select Yes.
Example:
- Click Next.
- Click Add groups and specify a group in Azure or click Add all users to include the required users for this script.
- Review the settings, then click Add.
The script will run the next time the user logs into the machine
A PowerShell script to delete signatures is necessary for this option.
Here is an example of a basic PowerShell script which will backup and then delete the signature files:
SYNOPSIS Script to backup and then delete all signature files from the signatures folder used by Microsoft Outlook on Windows.
.DESCRIPTION This script is designed to be deployed by Microsoft Endpoint Manager or by Group Policy to delete signature files from a machine for the logged-in user.
.NOTES Date: 23rd January 2023.
.PRODUCTS Exclaimer Cloud - Signatures for Office 365.
.USAGE Check that the variables $SignaturesFolder and $SignaturesBackupFolder are set to the best values for your organisation. The backup of the signature files is optional can can be removed if desired. #>
#Declaring Signatures folder location $SignaturesFolder = "$env:APPDATA\Microsoft\Signatures" #Declaring Signature backup folder location $SignaturesBackupFolder = "$env:APPDATA\Microsoft\SignaturesBackup" #Backup Existing signature files If (! (Test-Path -path "$SignaturesBackupFolder")){ Copy-Item -Path "$SignaturesFolder" -Destination "$SignaturesBackupFolder" -Recurse
}
#Delete original signature files
Get-ChildItem -Path "$SignaturesFolder" -Include *.* -Recurse | foreach { $_.Delete()} The script should be saved as a .ps1 file in the Netlogon folder
e.g. \\ExampleDomain.com\NETLOGON
or C:\Windows\SYSVOL\sysvol\ExampleDomain.com\scripts
- Open Group Policy Management.
- Select the required domain.
- You can either click on the Action menu and select Create a GPO in this domain>Link it here… or right-click the required domain and select Create a GPO in this domain>Link it here…
This example screen displays the right-click menu:
The New GPO window is displayed.
- Specify a name for the new Group Policy Object (GPO) and click OK.
Example:
- Right-click the newly created GPO and click Edit.
- Expand User Configuration>Policies>Windows Setting and navigate to Users Administrative Templates.
- Double-click Scripts (Logon/Logoff).
- Double-click Logon.
Example:
- Now, navigate to the PowerShell Scripts tab.
- Click Add...
- Click Browse...
- Select the script from the NETLOGON folder
- Click OK.
The script will run the next time the user logs into the machine.