OnWorks favicon

wimextract - Online in the Cloud

Run wimextract in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command wimextract that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



wimlib-imagex-extract - Extract files or directories from a WIM image


wimlib-imagex extract WIMFILE IMAGE [(PATH | @LISTFILE)...] [OPTION...]


wimlib-imagex extract extracts one or more files or directory trees from the specified
IMAGE contained in the Windows Imaging (WIM) file WIMFILE. This command is also available
as simply wimextract if the appropriate hard link or batch file has been installed.

wimlib-imagex extract is intended for extracting only a subset of a WIM image. If you
want to extract or "apply" a full WIM image to a directory or NTFS volume, use wimlib-
imagex apply (1) instead.

IMAGE specifies the image in WIMFILE that contains the files or directory trees to
extract. It may be a 1-based index of an image in the WIM or the name of an image in the
WIM. Use the wimlib-imagex info (1) command to show what images a WIM file contains.

If no additional arguments are given, the entire WIM image is extracted. Otherwise, each
additional argument is interpreted as a PATH if it does not begin with the '@' character,
or a LISTFILE if it does. Each PATH specifies a file or directory tree within the WIM
image to extract, whereas each LISTFILE specifies a file that itself contains a list of
paths to extract. See PATHS AND LISTFILES for more details.

By default, files and directories are extracted to the current directory. Use --dest-dir
to select a different destination directory. Alternatively, use --to-stdout to extract a
file to standard output to pipe into another program.

A file or directory extracted from a PATH argument is by default extracted directly into
the destination directory, whereas a file or directory extracted from a LISTFILE argument
is by default extracted into the destination directory in such a way that the archive's
directory structure is preserved. Use --preserve-dir-structure to always get the latter

wimlib-imagex extract supports extracting files and directory trees from stand-alone WIMs
as well as split WIMs. See SPLIT WIMS.


Each path, including those on the command line and those in listfiles, must be specified
as an absolute path starting from the root of the WIM image, like those output by the
wimlib-imagex dir (1) command. However, path separators may be either forward or backward
slashes, and the leading slash is optional.

On Windows, by default paths are treated case-insensitively, whereas on UNIX-like systems,
by default paths are treated case-sensitively. In either case, the default behavior may
be overridden through the WIMLIB_IMAGEX_IGNORE_CASE environmental variable, as documented
in wimlib-imagex (1).

By default, each path may contain the wildcard characters '?' and '*'. The '?' character
matches any non-path-separator character, whereas the '*' character matches zero or more
non-path-separator characters. Consequently, a single wildcard path, or "glob", may
expand to multiple actual files or directories. Use the --no-globs option to disable
wildcard matching and search for each path literally.

Each LISTFILE must be a text file (UTF-8 or UTF-16LE encoded; plain ASCII is also fine)
that contains a list of paths to extract, one per line. Wildcard characters are allowed
by default. The following demonstrates an example listfile:

; This is a comment (begins with semicolon)
# This is also a comment (begins with number sign)

; Both forward and backslashes are valid.
; It's not necessary to quote paths containing internal spaces.
\Program Files\A*

; Leading and trailing whitespace is ignored


You may use wimlib-imagex extract to extract files or directory trees from a split WIM.
This uses the --refs="GLOB" option in the same way as in other commands such as wimlib-
imagex apply. See wimlib-imagex apply (1) for more details.


When reading WIMFILE, verify its integrity if an integrity table is present.

File glob of additional WIMs or split WIM parts to reference resources from. See
SPLIT_WIMS. Note: GLOB is listed in quotes because it is interpreted by wimlib-
imagex and may need to be quoted to protect against shell expansion.

Extract the files and directories to the directory DIR instead of to the current
working directory.

Extract the files to standard output instead of to the filesystem. This can only be
provided if all the specified paths are to regular files (not directories or reparse
points). If present, alternate data streams are not extracted.

See the documentation for this option in wimlib-imagex-apply (1).

See the documentation for this option in wimlib-imagex-apply (1).

See the documentation for this option in wimlib-imagex-apply (1).

See the documentation for this option in wimlib-imagex-apply (1).

See the documentation for this option in wimlib-imagex-apply (1).

Do not recognize wildcard characters in paths. Each path will be searched for
literally. In addition, if case insensitivity is enabled, do not allow a single
path to match multiple files with the same case-insensitive name but different case-
sensitive names.

--no-wildcards is also accepted as an alias for this option.

If a glob does not match any files, ignore it and print a warning instead of failing
with an error. In other words, this option allows a glob to successfully match zero

This option also affects paths that do not contain wildcard characters, since such
paths are still considered globs unless --no-globs is enabled. If case-
insensitivity is enabled, such a glob could match multiple files with the same case-
insensitive name but different case-sensitive names, whereas a non-glob path (with
--no-globs) can match at most one file.

When extracting paths, preserve the archive directory structure instead of
extracting the file or directory tree named by each path directly to the destination
directory. Note: --preserve-dir-structure is already the default behavior for paths
in listfiles, but not paths directly specified on the command line.

See the documentation for this option in wimlib-imagex-apply (1).

See the documentation for this option in wimlib-imagex-apply (1).


See the documentation wimlib-imagex apply (1) for documentation about what data and
metadata are extracted on UNIX-like systems versus on Windows.

On UNIX-like systems that support userspace filesystems with FUSE (e.g. Linux), one can
alternatively mount the WIM image with wimlib-imagex mount (1) and then extract the
desired files or directories using any standard command-line or graphical program.

Reparse-point fixups (a.k.a. changing absolute symbolic links and junctions to point
within the extraction location) are never done by wimlib-imagex extract. Use wimlib-
imagex apply if you want this behavior.

Unlike wimlib-imagex apply, wimlib-imagex extract does not support extracting files
directly to an NTFS volume using libntfs-3g.

wimlib v1.6.0 and later can extract files from version 3584 WIMs, which usually contain
LZMS-compressed solid resources and may carry the .esd file extension rather than .wim.
However, .esd files downloaded directly by the Windows 8 web downloader have encrypted
segments, and wimlib cannot extract such files until they are first decrypted.
Furthermore, such files are not designed for random access, so extracting individual files
from them may be slow.


Extract a file from the first image in "boot.wim" to the current directory:

wimlib-imagex extract boot.wim 1 /Windows/System32/notepad.exe

Extract a file from the first image in "boot.wim" to standard output:

wimlib-imagex extract boot.wim 1 /Windows/System32/notepad.exe \

Extract a file from the first image in "boot.wim" to the specified directory:

wimlib-imagex extract boot.wim 1 /Windows/System32/notepad.exe \

Extract the "sources" directory from the first image in "boot.wim" to the current

wimlib-imagex extract boot.wim 1 /sources

Extract multiple files and directories in one command:

wimlib-imagex extract boot.wim 1 /Windows/Fonts \
/sources /Windows/System32/cmd.exe

Extract many files to the current directory using a wildcard pattern:

wimlib-imagex extract install.wim 1 "/Windows/Fonts/*.ttf"

Extract files using a list file:

wimlib-imagex extract install.wim 1 @files.txt

... where files.txt could be something like:


Use wimextract online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Strikr Free Software project. Artifacts
    released under a 'intent based'
    dual license: AGPLv3 (community) and
    CC-BY-NC-ND 4.0 international
    Download strikr
  • 3
    giflib is a library for reading and
    writing gif images. It is API and ABI
    compatible with libungif which was in
    wide use while the LZW compression
    algorithm was...
    Download GIFLIB
  • 4
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 5
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 6
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • More »

Linux commands

  • 1
    a2j - Wrapper script to simulate
    a2jmidid's non-DBUS behaviour though
    a2jmidid actually being in DBUS mode ...
    Run a2j
  • 2
    a2jmidid - JACK MIDI daemon for ALSA
    MIDI ...
    Run a2jmidid
  • 3
    corebird - Native Gtk+ Twitter client
    for the Linux desktop. ...
    Run corebird
  • 4
    coredumpctl - Retrieve coredumps from
    the journal ...
    Run coredumpctl
  • 5
    ganyremote - GTK+ frontend for
    anyRemote ...
    Run ganyremotex
  • 6
    GAP - Groups, Algorithms and
    Programming DESCRIPTION: GAP is a system
    for computational discrete algebra with
    particular emphasis on computational
    group theory...
    Run gap
  • More »