You are here:   Research
  |  Login
The quickest way to find articles is to use the below search option.

However, if you go to the end of this page, you also find the Blog archive (calendar format) that allows for browsing of older articles.

Search:

 
     

Setting screen resolution in WinPE 4.0

Jan 24 2012

In the previous WinPE version 2.x/3.x you could provide the below settings in the Unattend.xml file to set the screen resolution:

<Display>
  <ColorDepth>16</ColorDepth>
  <HorizontalResolution>1024</HorizontalResolution>
  <RefreshRate>60</RefreshRate>
  <VerticalResolution>768</VerticalResolution>
</Display>


The Problem:

But if you try to do that in WinPE 4.0 it fails, and you will see the following entry in the wpeinit.log file:

2012-01-24 14:01:11.619, Info      WPEINIT is processing the unattend file
2012-01-24 14:01:11.697, Info      ==== Initializing Display Settings ====
2012-01-24 14:01:11.712, Info      Setting display resolution 1024x768x16@60: 0xfffffffe
2012-01-24 14:01:11.728, Warning   Setting the display resolution failed; this error is being ignored
2012-01-24 14:01:11.728, Info      STATUS: SUCCESS (0x00000001)

The solution:

Turned out that WinPE 4.0 (developer preview of Windows 8) didn't like 16-bit color depth, so when changing to 32-bit it works perfect

<Display>
  <ColorDepth>32</ColorDepth>
  <HorizontalResolution>1024</HorizontalResolution>
  <RefreshRate>60</RefreshRate>
  <VerticalResolution>768</VerticalResolution>
</Display>

Complete sample:

<?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">
            <Display>
                <ColorDepth>32</ColorDepth>
                <HorizontalResolution>1024</HorizontalResolution>
                <RefreshRate>60</RefreshRate>
                <VerticalResolution>768</VerticalResolution>
            </Display>
        </component>
    </settings>
</unattend>

Blog Archive

Minimize