Posts Tagged ‘unattend.xml winpe’

How to Change Screen Resolution in Windows PE 4 and 5

April 26th, 2014 by Admin

Windows PE (Windows Preinstallation Environment) is a lightweight version of Windows used for troubleshooting an operating system while it is offline. Previously I’ve written an article on how to create a bootable Windows PE CD or USB flash drive. But the default resolution of Windows PE is 800 x 600, Is there a way to change the screen resolution to fit on your screen?

To set screen resolution in WinPE, simply put an answer file named unattend.xml file in the root of the WinPE ISO image with the following content.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup" processorArchitecture="amd64"
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
 xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <Display>
          <ColorDepth>32</ColorDepth>
          <HorizontalResolution>1024</HorizontalResolution>
          <RefreshRate>60</RefreshRate>
          <VerticalResolution>768</VerticalResolution>
          </Display>
    </component>
  </settings>
</unattend>

If your Windows PE is a 32-bit Windows environment, remember to change the processor architecture from amd64 to x86. Also, since Windows PE 4.0, it doesn’t like 16-bit color depth, so when changing to 32-bit it would work perfect.