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

  1. Press Windows Key + R to open the Run dialog box.
  2. Type regedit and press Enter.
  3. 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:

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

  1. Select the System key.
  2. In the right pane, right-click an empty space and choose New > String Value (REG_SZ).
  3. Name this value Wallpaper.
  4. Double-click Wallpaper and enter the full file path to your custom image in the Value data field (e.g., C:\Windows\Web\Wallpaper\Custom\wallpaper.jpg).
  5. Click OK.

Step 5: Set the Wallpaper Style

  1. In the same right pane, right-click an empty space and choose New > String Value.
  2. Name this value WallpaperStyle.
  3. Double-click WallpaperStyle and set the Value data to one of the following numbers based on your preference:
    • 0 – Centered
    • 1 – Tiled
    • 2 – Stretched
    • 3 – Fit
    • 4 – Fill
    • 5 – Span
  4. 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.