Professional Documents
Culture Documents
In this article
Wpeutil Command-Line Options
Related topics
The Windows® PE utility (Wpeutil) is a command-line tool that enables you to run
commands during a Windows PE session. For example, you can shut down or
restart Windows PE, enable or disable a firewall, set language settings, and initialize
a network.
For example:
Copy
Wpeutil Shutdown
Wpeutil Enablefirewall
Wpeutil SetMuiLanguage de-DE
Note
Wpeutil can only accept one command per line.
Command Description
CreatePageFile [/path=<path>] Creates a page file to a specified path and size. The default pat
[/size=<size>] C:\pagefile.sys and default size is 64 megabytes. At least one o
specified. For example:
-or-
Important
If a page file exists, the /CreatePageFile
equal to or greater than the current size of the page
the command will fail.
If disabled, all files that have been created with extended chara
converted to a short file name.
Wpeutil DisableFirewall
Note
If you are installing an operating system in a langua
has extended characters that are enabled by default
ja-JP or ko-KR, or using a copy of Windows PE in a l
that doesn't have extended characters enabled, such
US, the installation will cause a Chkdsk error during
Enabling this option before you install to that volum
prevent Chkdsk command from running.
Wpeutil EnableFirewall
InitializeNetwork Initializes network components and drivers, and sets the comp
randomly-chosen value. For example:
Wpeutil InitializeNetwork
ListKeyboardLayouts <LCID> Lists the supported keyboard layouts (Name and ID) for a given
(LCID) value. The keyboard layouts will also be updated in the r
the key: HKEY_LOCAL_MACHINE \SOFTWARE\Microsoft\Wi
NT\CurrentVersion\WinPE\KeyboardLayouts. For example:
-or-
Command Description
Wpeutil Reboot
SaveProfile Stops logging and saves the custom profile to the location the
earlier with the Dism /enable-profiling command. For more in
about the /enable-profiling command-line option, see
Servicing Command-Line Options. For example:
ListKeyboardLayouts LCID
SetUserLocale <language-name> Sets the user locale. <language-name> uses the international l
[;<language-name>] format (for example, en-US for the U.S. English language). You
multiple languages in priority order, by separating them with a
For example:
Wpeutil Shutdown
Note
You can also do the following in the Command Prom
window:
After you run this command, query the registry. For example:
Command Description
wpeutil UpdateBootInfo
reg query HKLM\System\CurrentControlSet\Control
WaitForNetwork Waits for the network card to be initialized. Use this command
scripts to make sure that the network card has been fully initial
continuing.
Wpeutil WaitForRemovableStorage
Note
This spelling of WaitForRemovableStorage
Related topics
WinPE for Windows 10