|
....................................................Windows 7 Resource
Kit
Unofficial Support Site
Win7 Reskit
> Part 2: Deployment > Chapter 9:
Preparing Windows PE
Frequently
Asked Questions: Windows PE
Q-4. How can I change the display
resolution in Windows PE during a Lite Touch installation using MDT
2010?
A-4. You can specify a different
display resolution using the unattend.xml contained in a Lite Touch
Windows PE boot image. In MDT 2010, the XML template files for boot
images are Unattend_PE_<platform>.xml where <platform> is either x86
or x64. These template files are found at C:\Program Files\Microsoft
Deployment Toolkit\Templates\. By default, these template look like
this:
<?xml version="1.0"
encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<Display>
<ColorDepth>16</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Description>Lite Touch PE</Description>
<Order>1</Order>
<Path>wscript.exe X:\Deploy\Scripts\LiteTouch.wsf</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
</unattend>
To change the display resolution for
Windows PE, modify the appropriate settings
shown above. Note
however that by default Windows PE uses the Standard VGA driver, so
this will limit your available resolution choices unless you inject
additional out-of-box video drivers.
Q-3. I have a system that has a
mixture of SATA, SAS and SCSI disks. I want to select the system disk
using diskpart in the Windows PE command prompt. In Windows PE 1.6 the
system disk (the SATA disk) was always disk 0, so I could type select
disk 0 in diskpart, but in Windows PE disk 0 is not always the system
disk. What can I do?
A-3. The following diskpart command which
is new in WinPE 3.0 can be used to do this:
select disk system
This will select the disk that is
configured as disk 0 in the system's BIOS and won't change unless you
modify your BIOS settings.
Q-2. I added a package to Windows PE
but the package available in Windows PE. Why?
A-2. When adding feature packs to a Windows
PE image, make sure you also add the corresponding language packs. For
instance, you can add the WinPE-Scripting feature pack to Windows PE
using the DISM /add-package command like this:
Dism /image:C:\<build_folder>\mount
/Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\<architecture>\WinPE_FPs \winpe-scripting.cab"
This isn't enough however—you also need
to add the corresponding language pack for the feature:
Dism /image:C:\<build_folder>\mount
/Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\<architecture>\WinPE_FPs \<user_local_folder>winpe-scripting_<user_local>.cab"
For example, the US English language pack
for the wmi-scripting.cab feature pack is wmi-scripting_en-us.cab.
Q-1. How can I pre-specify the
computer name for Windows PE?
A-1. By default, Windows PE randomly
generates a computer name each time it initializes on a system. The
randomly-generated computer name is of the form MININT-####### where
####### is a randomly-generated alphanumeric string. In some scenarios
however you may want the Windows PE computer name to be pre-specified.
To do this, create an unattend.xml answer file like this:
<component
name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<ComputerName>_ComputerName_</ComputerName>
<EnableNetwork>true</EnableNetwork>
<EnableFirewall>false</EnableFirewall>
</component>
This example assumes you are using a
64-bit version of Windows PE. Then, when you build your Windows PE
environment, copy this answer file to the \ISO folder of your Windows PE
build folder. Now, when you boot a system using Windows PE it will use
the answer file to set the computer name. Specifically, when wpeinit
runs it will apply the customizations you have specified in your answer
file. Note that you can also apply such customizations manually from
within Windows PE by running the wpeinit /unattend:<path>\unattend.xml
command, but this won't work for setting the computer name since this
must be done at startup and cannot be done after Windows PE has
initialized.
Disclaimer: The Windows 7 Resource
Kit Unofficial Support Site makes no
representations concerning the accuracy,
reliability or suitability of the
information contained herein. All such
information is presented "as is" with no
warranties of any kind.
Contact us if you have questions
or feedback concerning this site.
|