How To Change Background In WinPE: The Complete Guide To Customizing JPG Wallpapers

How To Change Background In WinPE: The Complete Guide To Customizing JPG Wallpapers

How to Change Your Desktop Background in Windows

Customizing the Windows Preinstallation Environment involves mounting the Windows Imaging Format file and replacing the default wallpaper located within the System32 directory. To ensure a successful deployment, the replacement image must be a baseline JPEG named winpe.jpg and the wim file must be unmounted with a full commit to finalize the changes.

Pre-Deployment Preparation and Environment Requirements

Before attempting to modify a WinPE boot image, you must establish a stable technician workstation environment. WinPE serves as a lightweight version of Windows used for deployment, troubleshooting, and recovery, and its file system is protected by strict ownership permissions. Modifying the background is not as simple as a drag-and-drop operation because the file resides within a compressed WIM (Windows Imaging Format) file that must be serviced using specific command-line utilities.

The primary tool for this operation is the Deployment Image Servicing and Management (DISM) tool, which is natively available in Windows but is best utilized through the Windows Assessment and Deployment Kit (ADK). Utilizing the latest version of the ADK ensures compatibility with the latest Windows kernel versions and prevents corruption during the mounting process.



Essential Gear and Tool Checklist



  • Windows Assessment and Deployment Kit (ADK): Ensure you have the version corresponding to the Windows version you are deploying.
  • Windows PE Add-on for the ADK: Starting with Windows 10 version 1809, WinPE is a separate download from the main ADK.
  • Custom Wallpaper Image: A high-quality JPEG file. For maximum compatibility across various monitors, use a resolution of 1024 by 768 or 1920 by 1080 pixels.
  • Administrative Privileges: You must run all command-line interfaces as an Administrator to manage file permissions and mount drivers.
  • Storage Space: At least 10 GB of free space on the technician machine to handle the expanded WIM contents and scratch space.
  • Estimated Duration: 20 to 40 minutes depending on hardware speed and image size.

Step-by-Step Customization of the WinPE Background

Customizing the background requires a systematic approach to avoid corrupting the boot sequence. The following workflow outlines the extraction, modification, and repackaging of the boot image.



Step 1: Initialize the WinPE Working Directory

The first step is to create a localized copy of the WinPE files to avoid modifying the original source files in the ADK installation folder. You must use the Deployment and Imaging Tools Environment, which is a specialized command prompt that includes all necessary paths for DISM and other deployment tools.



  1. Open the Deployment and Imaging Tools Environment as an Administrator.
  2. Use the copype command to create a working directory. For an 64-bit architecture, the command syntax involves specifying the architecture (amd64) and the destination path, such as C:\WinPE_amd64.
  3. Once the command completes, navigate to the destination folder. You will find a media folder containing the boot.wim file inside the sources subfolder. This boot.wim is the heart of the preinstallation environment.


Step 2: Mount the WinPE Boot Image

The boot.wim file is a compressed archive that cannot be edited directly. You must mount it to a physical folder on your hard drive to reveal the internal file structure of the Windows Preinstallation Environment.



  1. Create a dedicated mount folder, for example, C:\WinPE_Mount.
  2. Execute the DISM mount command. You must specify the image file path, which is usually located in the media\sources folder of your working directory.
  3. Include the index parameter. For most standard WinPE images, the index is 1.
  4. Specify the mount directory created in the first sub-step.
  5. Wait for the DISM tool to reach one hundred percent. Once finished, the C:\WinPE_Mount folder will contain what looks like a standard Windows file system, including Windows, Program Files, and Users directories.


Step 3: Modify File Permissions for the Background Image

The default background image is located at C:\WinPE_Mount\Windows\System32\winpe.jpg. By default, this file is owned by the TrustedInstaller identity, and even local administrators do not have write access to it. You must take ownership of the file before you can replace it.



  1. Navigate to the System32 folder within your mount directory.
  2. Use the takeown command to change the ownership of winpe.jpg to the Administrators group.
  3. Use the icacls command to grant the Administrators group Full Control permissions over the file.
  4. Verify that the permissions have been updated by checking the file properties or using the icacls display command. Without this step, any attempt to overwrite the file will result in an Access Denied error.

Warning: Do not attempt to delete the file without taking ownership first, as this can trigger file system flags that may lead to the WIM being marked as dirty or corrupted during the unmounting process.



Step 4: Replace the Default winpe.jpg File

Now that the permissions are set, you can introduce your custom branding.



  1. Prepare your custom image. Ensure it is named exactly winpe.jpg. If you use a .png or .bmp extension, WinPE will ignore the file and default to a solid black background.
  2. Copy your custom winpe.jpg and paste it into the C:\WinPE_Mount\Windows\System32 folder.
  3. Choose to Replace the file in the destination when prompted by the operating system.
  4. Confirm that the file size and dimensions match your intended design.

Pro-Tip: WinPE does not support high-resolution scaling features found in the full Windows OS. If your image is 4K but the WinPE environment initializes at a lower resolution like 800 by 600, your image may appear cropped or heavily distorted. Always test with a standard 1024 by 768 image for the widest compatibility.



Step 5: Unmount the Image and Commit Changes

The final technical phase is to save the changes back into the compressed boot.wim file. This is known as committing the image.



  1. Close all File Explorer windows that are browsing the mount directory. If any files are in use, the unmount process will fail.
  2. Return to the Deployment and Imaging Tools Environment.
  3. Execute the DISM unmount command with the /commit switch. This switch is vital; if you use /discard, all your work will be lost and the image will revert to the original state.
  4. The process will take several minutes as DISM re-compresses the file system. Once finished, the boot.wim file in your media\sources folder is updated and ready for use.


Step 6: Create the Bootable Media

With the modified boot.wim file ready, you need to turn the working directory into a bootable format such as an ISO or a USB drive.



  1. Use the MakeWinPEMedia command provided by the ADK.
  2. To create an ISO, specify the /iso switch, the path to your working directory, and the desired output path for the ISO file.
  3. To create a USB drive, specify the /ufd switch and the drive letter of your formatted flash drive.
  4. Test the resulting media on a physical machine or a virtual machine to verify the custom background appears during the boot process.

Windows 10 Change Background Every Day at Agnes Hendricks blog

Windows 10 Change Background Every Day at Agnes Hendricks blog

Technical Specifications and Image Standards

When selecting a background for WinPE, adhering to specific technical constraints is necessary to prevent rendering errors or boot delays. WinPE uses a basic display driver during its initial phases, which limits how it processes image data.



Technical Parameter Standard Specification Impact of Non-Compliance
File Format JPEG (Baseline) Progressive JPEGs may fail to render, resulting in a black screen.
File Name winpe.jpg WinPE specifically calls this filename; other names require registry edits.
Target Path \Windows\System32\ Placing the file elsewhere renders it inaccessible to the shell.
Maximum Resolution 1920 x 1200 Extremely high resolutions can cause memory allocation errors in PE.
Color Depth 24-bit RGB Images with CMYK color profiles will display inverted or distorted colors.
File Size Limit Less than 5 MB Larger files can marginally increase the boot time of the environment.
Permission Level Full Control (Post-Takeown) Attempting to replace without permission leads to Error 0x80070005.

Troubleshooting Common WinPE Customization Failures

Even with a perfect workflow, environmental variables can lead to failures during the image customization process. Understanding the root causes of these failures allows for rapid remediation.



  • Failure Scenario: DISM fails to unmount with a "File in Use" error.



    • Root Cause: This usually occurs because a File Explorer window is open to the mount directory, or a background process (like an anti-virus scanner) is locking the winpe.jpg file.
    • Actionable Fix: Close all open folders and applications. If the error persists, use the DISM /Cleanup-Mountpoints command to force-clear the directory locks, then attempt the unmount again.
  • Failure Scenario: The custom background displays as a solid black screen.



    • Root Cause: The image might be saved in a format WinPE cannot decode, such as a PNG renamed to JPG, or a Progressive JPEG. It could also be that the file permissions were not correctly restored, preventing the System account from reading the file.
    • Actionable Fix: Re-save the image in a standard photo editor specifically as a "Baseline" or "Standard" JPEG. Ensure the file name is lowercase winpe.jpg and verify the file exists in the System32 folder of the mounted image.
  • Failure Scenario: The WinPE image fails to boot after customization.



    • Root Cause: This is often caused by a corrupted WIM file resulting from an interrupted unmount process or running out of disk space during the compression phase.
    • Actionable Fix: Delete the working directory and start the process again from the copype command. Ensure that the technician machine has ample disk space and that the power supply is not interrupted during the /commit phase.

Frequently Asked Questions



Can I use a PNG file instead of a JPG for the WinPE background?

By default, the Windows Preinstallation Environment is hardcoded to look for winpe.jpg in the System32 directory. To use a PNG, you would need to modify the winpeshl.ini file or edit the registry to point to a different file path and extension, which is a significantly more complex process than simply replacing the default JPEG.



Why does my background look stretched or pixelated?

WinPE does not include the advanced display scaling logic found in the standard Windows Desktop. It typically boots into a default resolution determined by the UEFI or BIOS. If your image aspect ratio does not match the monitor's native aspect ratio during boot, the image will stretch to fill the screen. Using a 16:9 aspect ratio image is generally the safest bet for modern hardware.



Do I need to change permissions every time I update the image?

Yes, every time you mount a fresh boot.wim or a different index, the file system permissions within that image are reset to the defaults stored in the WIM. The ownership of winpe.jpg will always revert to TrustedInstaller in the virtualized environment, necessitating the use of the takeown and icacls commands for every new customization session.



Does adding a large background image slow down the boot process?

WinPE loads the entire boot.wim into the RAM (Random Access Memory) as a RAMDISK. While a 2 MB or 3 MB JPEG won't noticeably impact boot times on modern systems, an excessively large image (over 10 MB) will slightly increase the time it takes for the "Loading Files" progress bar to complete, as more data must be moved from the boot media to the system memory.



Can I have different backgrounds for different WinPE versions?

Yes, because each WinPE version uses its own boot.wim file. You can maintain separate working directories for Windows 10 PE and Windows 11 PE, applying unique branding to each winpe.jpg file within their respective System32 directories to help technicians quickly identify which environment they have booted into.

Optimize Your Deployment Workflow

Customizing your WinPE environment with professional branding increases the authority of your technical tools and provides a polished experience for end-users during recovery. Start building your custom deployment media today by downloading the Windows ADK and mastering the DISM workflow for all your imaging needs.


How To Change Wallpaper Every Slide at Kurt Scott blog

How To Change Wallpaper Every Slide at Kurt Scott blog

Read also: Celeb Nubes: Riesgos de Privacidad, Seguridad Digital y el Impacto de las Filtraciones en la Red
close