Home Outlook Local Signature Removal
Post
Cancel

Outlook Local Signature Removal

Outlook Local Signature Removal

Login Script

Script to be pushed out via Group Policy to delete any existing signature within Outlook locally.

signature-removal.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$TopFolder = 'c:\users'
$SigFolder = 'AppData\Roaming\Microsoft\Signatures'


$FolderList = Get-ChildItem $TopFolder -Directory -Exclude default, Public

foreach ($Item in $FolderList)
    {
    if (Test-Path (Join-Path -Path $Item -ChildPath $SigFolder))
        {
        $compPath = "$Item" + "\" + "$SigFolder" + "\*"
        Remove-Item $compPath -Recurse
        }
    }
This post is licensed under CC BY 4.0 by the author.