You are here:   Research
Register   |  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

Written by:
1/24/2012 2:06 PM  RssIcon

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 [X:\unattend.xml]
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>

19 comment(s) so far...


Gravatar

Re: Setting screen resolution in WinPE 4.0

Hi Johan, is it possible to make the screen resolution dynamic?

By baatch on   2/14/2012 1:24 PM
Gravatar

Re: Setting screen resolution in WinPE 4.0

Sure, as long as the unattend.xml file is updated before wpeinit.exe is run... You can have a script that updates the unattend.xml file dynamically when WinPE boots.

/ Johan

By Arwidmark on   2/15/2012 2:07 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

Hi,
Could someone refer me to a link that states all possible UNATTEND settings for Winpe? Also the default place should be \System32 folder or Root?

By Naveed on   6/17/2012 12:04 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

The final ADK documentation will include all settings for the WinPE pass, check the unattend.chm file.

And the unattend.xml can be dynamically generated by a script in WinPE running before wpeinit.exe is called, so yes...

/ Johan

By Arwidmark on   6/17/2012 9:37 PM
Gravatar

Re: Setting screen resolution in WinPE 4.0

I'm using the answer file referenced above but with the resolution set to 1280x1024. I injected the graphics driver in my image, and I know the display adapter supports this resolution in Windows 7, but I can't seem to get WinPE to change the resolution from 1024x768. I'm invoking Autounattend as an option to Wpeinit. Wpeinit.log says that it processed Autounattend.xml, that it's initializing display settings, but then "no display settings specified". Am I doing something wrong?






32
1280
60
1024





Thanks!

- Servant

By Servant on   7/20/2012 4:37 PM
Gravatar

Re: Setting screen resolution in WinPE 4.0

The settings need to be in the WindowsPE pass of the unattend.xml

/ Johan

By Arwidmark on   7/21/2012 5:37 PM
Gravatar

Re: Setting screen resolution in WinPE 4.0

Thanks for the quick reply. Turns out I was specifying x86 instead of amd64 in the xml file, and now it works. For reference, following is the XML (which I attached in the last entry but got eaten).

##
##
##
##
##
## 32
## 1280
## 60
## 1024
##
##
##
##

(This is a great website - very much needed.)

By Servant on   7/23/2012 9:06 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

Sorry, can't seem to get XML posted...

By Servant on   7/23/2012 9:07 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

Sorry, can't seem to get XML posted...

By Servant on   7/23/2012 9:21 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

Email me the file and I will take a look, my alias is my last name, and I'm using gmail

/ Johan

By Arwidmark on   8/3/2012 5:14 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

This does not work in WinPE 4 x64 RTM. The wpeinit.log returns:

Info Setting display resolution 1024x768x32@60: 0xfffffffe
Warning Setting the display resolution failed; this error is being ignored

This was done using the -unattend switch with wpeinit.exe.

By Tripredacus on   4/4/2013 11:45 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

I have tested in WinPE 4.0 x64 and it works fine. Did you specify the amd64 architecture in the file?

By Arwidmark on   4/4/2013 10:44 PM
Gravatar

Re: Setting screen resolution in WinPE 4.0

I certainly did. I made this topic shortly after posting here.
www.msfn.org/board/topic/162510-unable-to-set-resolution-in-winpe4/

By Tripredacus on   4/5/2013 5:31 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

I tested your unattend.xml file (that you posted in MSFN) and it worked fine in my WinPE 4.0 x64 image.

Did you try in a virtual machine, or on a physical machine?

/ Johan

By Arwidmark on   4/6/2013 12:36 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

The PE image is booted in UEFI mode. I found another person on MS Social that also has this issue in UEFI mode in changing the resolution.

By Tripredacus on   4/8/2013 9:16 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

See my longish post here for my best theory:
social.technet.microsoft.com/Forums/en-US/w8itproinstall/thread/eb9c59df-7f93-487e-ae59-c5954da5866f/

By Tripredacus on   4/11/2013 2:26 PM
Gravatar

Re: Setting screen resolution in WinPE 4.0

There seems to be an issue with setting the screen resolution via WinPE 4.0 when booted into UEFI mode. I have pinged a few folks that might know more, but for know I would recommend to configure your HTA to work with the default reslution.

/ Johan

By Arwidmark on   4/14/2013 12:33 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

Hi I recently build a wds server with MDT 2013 and Im experiencing this very same problem on our UEFI machines. The WinPe part just doesn't want to set correct resolution. Is there a know fix for this? As I cant find anything on Internet.

By aiva114 on   11/12/2013 6:21 AM
Gravatar

Re: Setting screen resolution in WinPE 4.0

UEFI doesn't read the screen resolution (at least not in WinPE 4.0). If it uses the UEFI GOP video support, 1024x768 is the minimum though, see: msdn.microsoft.com/en-us/library/windows/hardware/hh997769.aspx.

/ Johan

By Arwidmark on   11/12/2013 7:08 AM