Lock Desktop Wallpaper Using Regedit
This guide explains how system administrators can configure a custom desktop background and prevent users from changing it using the Windows Registry Editor (Regedit). By defining specific registry keys under the Windows policy path, you can enforce a standardized desktop wallpaper across individual accounts or all users on a local machine.
Step 1: Prepare the Wallpaper Image
Place your custom image (e.g., company_wallpaper.jpg or
.png) in a permanent, read-only directory accessible by all
users, such as
C:\Windows\Web\Wallpaper\Custom\wallpaper.jpg.
Step 2: Open the Registry Editor
- Press Windows Key + R to open the Run dialog box.
- Type
regeditand press Enter. - Confirm the User Account Control (UAC) prompt by clicking Yes.
Step 3: Navigate to the Policies Key
Navigate to the following key depending on your target scope:
- For the current user:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies - For all users on the machine:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies
If the System subkey does not exist under
Policies, right-click the Policies
folder, select New > Key, and name it
System.
Step 4: Configure the Wallpaper Path
- Select the System key.
- In the right pane, right-click an empty space and choose New
> String Value (
REG_SZ). - Name this value
Wallpaper. - Double-click
Wallpaperand enter the full file path to your custom image in the Value data field (e.g.,C:\Windows\Web\Wallpaper\Custom\wallpaper.jpg). - Click OK.
Step 5: Set the Wallpaper Style
- In the same right pane, right-click an empty space and choose New > String Value.
- Name this value
WallpaperStyle. - Double-click
WallpaperStyleand set the Value data to one of the following numbers based on your preference:0– Centered1– Tiled2– Stretched3– Fit4– Fill5– Span
- Click OK.
Step 6: Lock the Desktop Settings
Setting the Wallpaper string value under the
Policies\System key automatically locks the desktop
background in modern versions of Windows.
To explicitly block access to the wallpaper settings panel: 1.
Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop
(Create the ActiveDesktop key under
Policies if it does not exist). 2. Right-click in the
right pane and select New > DWORD (32-bit) Value. 3.
Name the value NoChangingWallPaper. 4. Double-click
NoChangingWallPaper and set its Value data
to 1. 5. Click OK.
Step 7: Apply the Changes
Close the Registry Editor and restart the computer or sign out and sign back into the Windows account for the changes to take effect. The desktop wallpaper is now updated and locked against user modifications.