Logo
Setting Desktop and Lock Screen Wallpaper with Microsoft Intune
Microsoft 365

Setting Desktop and Lock Screen Wallpaper with Microsoft Intune

28 July 2026 By Hal Sclater

If you need to set a consistent desktop and lock screen wallpaper across devices in your organisation, Microsoft Intune provides a reliable way to do it. This guide walks through packaging a wallpaper as a Win32 app and configuring the lock screen and desktop wallpaper policy.

No Azure blob or other storage is required for this solution, since the wallpaper is packaged and copied to the computer locally.

Packaging the wallpaper

The wallpaper is packaged as a Win32 app and deployed to devices. Once installed, the wallpaper image is copied to:

C:\Windows\Web\Wallpaper\Wallpaper.jpg

Note: The wallpaper has to be .jpg format, .png will not work in the Intune policy to set on the desktop, although the lock screen does support .png.

Create the scripts

install.ps1

$DestinationFolder = "C:\Windows\Web\Wallpaper\"
$WallpaperName = "Wallpaper.jpg"

# Create folder if required
if (!(Test-Path $DestinationFolder)) {
    New-Item -Path $DestinationFolder -ItemType Directory -Force
}

uninstall.ps1

$WallpaperPath = "C:\Windows\Web\Wallpaper\Wallpaper.jpg"

if (Test-Path $WallpaperPath) {
    Remove-Item $WallpaperPath -Force
}

Write-Host "Wallpaper removed."
exit 0

# Copy wallpaper
Copy-Item `
    -Path "$PSScriptRoot\$WallpaperName" `
    -Destination "$DestinationFolder\$WallpaperName" `
    -Force

Write-Host "Wallpaper copied successfully."
exit 0

detection.ps1 (outside of source)

$WallpaperPath = "C:\Windows\Web\Wallpaper\Wallpaper.jpg"

if (Test-Path $WallpaperPath) {
    Write-Host "Detected"
    exit 0
}
exit 1
  • Put the wallpaper (jpg), install.ps1, and uninstall.ps1 into the source folder.
  • Use the Microsoft Win32 Content Prep Tool to package the wallpaper:

cd to your working folder.

.\IntuneWinAppUtil.exe -c "Wallpaper\Source" -s "install.ps1" -o "Wallpaper\Output"

Adding to Intune

Once the .intunewin file is generated, add it as a new Windows app (Win32) in Intune.

Install command:

powershell.exe -ExecutionPolicy Bypass -File Install.ps1

Uninstall command:

powershell.exe -ExecutionPolicy Bypass -File Uninstall.ps1

Install behaviour: System

Detection script:

Add a custom script, and add the detection.ps1 script we created above.

Adding new versions

When updating the wallpaper, add new versions as a separate package. Increment the version in Intune and supersede the old package with uninstall selected. The file name on disk remains Wallpaper.jpg.

Intune configuration policy

A configuration policy named e.g. INT-WIN-Wallpaper is created to apply the lock screen and desktop wallpaper settings.

The policy references the wallpaper file at C:\Windows\Web\Wallpaper\Wallpaper.jpg and sets both the desktop background and the lock screen image to use this file.

Intune wallpaper configuration policy

User experience

The desktop wallpaper will be set, the lock screen background will be set, and users will be unable to change either setting.

Summary

Deploying a corporate wallpaper via Intune is straightforward once the packaging and policy are in place. Using supersedence for version updates keeps the deployment clean and ensures devices always have the latest wallpaper applied.