Randomly rotate banners and images

Running a marketing campaign with multiple banners?

2026-10-13

Running a marketing campaign with multiple banners? Rotating them manually across your team's signatures is nearly impossible and definitely not scalable.

With Set-OutlookSignatures, you can automate banner rotation effortlessly, using flexible conditions tailored to your needs.

Whether you want to:

  • Randomly rotate banners to avoid viewer fatigue
  • Show specific banners to certain departments or locations
  • Adjust banners based on season, date, or even external data like weather or stock prices

It's all possible and easy to implement - even in different ways:

🔗Include all banners, delete unwanted

  1. Add all banners to your template and define an alternate text
    • Use $CurrentMailbox_Banner1DELETEEMPTY$ for banner 1, $CurrentMailbox_Banner2DELETEEMPTY$ for banner 2, and so on.
    • The 'DELETEEMPTY' part deletes an image when the corresponding replacement variable does not contain a value.
  2. Create a custom replacement variable for each banner in your replacement variable config file, and randomly only assign one of these variables a value:

    $tempBannerIdentifiers = @(1, 2, 3)
    
    $tempBannerIdentifiers | Foreach-Object {
        $ReplaceHash["CurrentMailbox_Banner$($_)"] = $null
    }
    
    $ReplaceHash["CurrentMailbox_Banner$($tempBannerIdentifiers | Get-Random)"] = $true
    

🔗Dynamically fill a banner variable

Add the variable $…CustomImage[1..10] to a template and fill the variable dynamically - the following example shows how to chosse a random JPG image from a defined folder:

$ReplaceHash['$CurrentMailboxCustomImage2$'] = [System.IO.File]::ReadAllBytes((Get-ChildItem -Path "\\Server\Share\Folder\*.jpg" | Get-Random).FullName)

🔗Further enhancements

  • Use banner 1 twice as often as the others. Just add it to the code multiple times: $tempBannerIdentifiers = @(1, 1, 2, 3)
  • Assign banners to specific users, departments, locations or any other attribute
  • Restrict banner usage by date or season
  • You could assign banners based on your share price or expected weather queried from a web service
  • And much more, including any combination of the above

🔗Set-OutlookSignatures centralizes email signatures and out-of-office replies across every Outlook platform

Consistent branding for Marketing, centralized control for IT, and zero manual effort for employees. Sovereign by design, it keeps data within systems you already trust.

3-Step Quickstart Schedule a Tailored Demo Website
For IT administrators. No signup required. For decision-makers in IT, Marketing, and Security. Features, architecture, documentation, and downloads.
Learn more
Learn more

 

2026-11-11

🔗 Why Is Out of Office Abbreviated as OOF, Not OOO?

Let's rewind to the 1980s. Back then, Microsoft Xenix was the leading Unix OS…

2026-11-05

🔗 How to deploy an Outlook signature only once, without overwriting user changes

Three practical ways to deploy an Outlook signature once with Set-OutlookSignatures, including custom replacement variables, VirtualMailboxConfigFile, and a user-editable reference signature.

2026-10-29

🔗 What can I learn from the code of Set-OutlookSignatures?

Set-OutlookSignatures is not just a tool for managing Outlook signatures and out-of-office replies.

 

Learn more