Compartilhar via


Wpeutil Command-Line Options (Standard 7 SP1)

7/8/2014

Wpeutil is a command-line tool that enables you to run various commands in Windows Preinstallation Environment (Windows PE) 3.0. For example, you can shut down or restart Windows PE, enable or disable the firewall, set language settings, and initialize network components and drivers.

Wpeutil Command-Line Options

Wpeutil uses the following conventions.

wpeutil {command}[argument]

For example:

Wpeutil shutdown
Wpeutil enablefirewall
Wpeutil SetMuiLanguage de-DE

Command

Description

CreatePageFile [/path=<path>] [/size=<size>]

Creates a page file to a specified path and size. You must specify at least one argument, path or size; for example:

wpeutil CreatePageFile /path=C:\pagefile.sys

DisableFirewall

Disables the firewall. Does not require any arguments.

EnableFirewall

Enables the firewall. Does not require any arguments.

InitializeNetwork

Initializes network components and drivers, and sets the computer name to a randomly chosen value.

ListKeyboardLayout <LCID>

Lists the supported keyboard layouts (Name and ID) for a given Locale ID (LCID) value. For a list of valid Locale IDs, see Locale IDs. The following two examples show how to use ListKeyboardLayout:

wpeutil ListKeyboardLayouts 0x0409 
wpeutil ListKeyboardLayouts 1033 

Reboot

Restarts Windows PE.

SetKeyboardLayout <keyboard layout ID>

Sets the keyboard layout for Windows PE. To obtain a list of supported keyboard layouts, run ListKeyboardLayouts <LCID>. For example, to set the keyboard for en-US, use the following:

wpeutil SetKeyboardLayout 0409:00000409 

SetMuiLanguage <language-name>[;<language-name>]

Sets the language. <language-name> uses the international language code format (for example, en-US for the U.S. English). You can specify multiple languages in priority order by separating them with a semicolon; . for example:

wpeutil SetMuiLanguage de-DE;en-US

SetUserLocale <language-name>[;<language-name>]

Sets the user locale. <language-name> uses the international language code format (for example, en-US for U.S. English). You can specify multiple languages in priority order by separating them with a semicolon;. for example:

wpeutil SetUserLocale de-DE;en-US

Shutdown

Shuts down Windows PE.

UpdateBootInfo

Updates information about the method that is used to start Windows PE. Information is stored in the registry in the key HKLM\SYSTEM\CurrentControlSet\Control. The results of this operation might change after you load additional driver support.

See Also

Other Resources

Command-Line Tools Technical Reference