The instructions below provide a brief overview on the steps necessary to run WipeDrive for Windows in WinPE.

For more detailed instructions, as well as instructions on how to perform alternative tasks, see Microsoft's documentation:

Note: the provided paths are used as examples only and may not entirely match the paths on your system.



Amd 64 Build Instructions
1. Start Deployment and Imaging Tools Environment from the Start Menu (as an administrator)

2. Create a base WinPE layout for the architecture you plan to support
Supported architectures are: amd64, x86, or arm. (note: WipeDrive for Windows does not support arm).
copype amd64 C:\winpe_amd64

3. Mount the WinPE boot image
Dism /Mount-Image /ImageFile:"C:\winpe_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\winpe_amd64\mount"

4. Add required packages
at minimum: WinPE-WMI and WinPE-StorageWMI (Make sure the version number in the path is changed to the Windows ADK version you are running. In these instructions, they are set for Windows 10).

Dism /Add-Package /Image:"C:\winpe_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\"

Dism /Add-Package /Image:"C:\winpe_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\"

5. Add any necessary drivers
Possible Drivers to include: note - include only 64 bit with amd64 and 32 bit with x86
HP Driver Pack:
Dell Driver Pack:

Dism /Add-Driver /Image:"C:\winpe_amd64\mount" /Driver:"C:\path_to\drivers_to_add" /Recurse

 If you need to install a driver that is not a .cab file you will need to use a .inf file instead. use the command:

Dism /Add-Driver /Image:"C:\WinPE_amd64\mount" /Driver:"C:\SampleDriver\driver.inf"


Note: Make sure that the .sys and .dll files are present in the same directory. 

6. Create file "winpeshl.ini" locally with contents:

Net use x: \\Server\share /user:username Password
 "%SYSTEMDRIVE%\Program Files\WipeDriveWindows.exe"


Copy the created file into the folder "C:\winpe_amd64\mount\Windows\System32"
Note: Net use command creates a Windows share that enables WipeDrive to log to it. If you are not logging to a Windows share, omit the net use line by deleting it.

7. Place an appropriate copy of the WipeDrive for Windows executable in folder:
C:\winpe_amd64\mount\Program Files

 Place a customized copy of wd-options.cfg in the same folder.

Make sure the .exe is named 'WipeDriveWindows.exe' and that the config file is named 'wd-options.cfg'.

8. Create the following folder (it's necessary for the folder browse dialog box to work):

 9. Unmount the image

Warning: Be sure to close all windows, programs, etc that are related to any of the paths that have been created BEFORE unmounting the image. If there are any files/folders still open, it will cause a partial unmount.
Dism /Unmount-Image /MountDir:"C:\winpe_amd64\mount" /commit

10. You are now finished with the required customization. See Microsoft's documentation for instructions on how to perform other modifications.

Creating Boot Media

To create a bootable CD/DVD ISO:

MakeWinPEMedia /ISO C:\winpe_amd64 C:\winpe_amd64\winpe_amd64.iso

The ISO image should be placed within the winpe_amd64 folder

If using Rufus to create a bootable USB, sticking to the defaults rufus provides is recommended.

WIM File
To obtain the WIM file, browse to c:\winpe_amd64\media\sources
The file will be named boot.wim.

Wd-options configuration file
Open the wd-options.cfg in notepad to edit the configuration options.
To change the logging location, add a line to the file:

Log-directory="X:\log files"

::Assuming "X" is the network share created in the wimpeshl.ini file and "log files" is the desired directory.

To log to a local USB drive, use: Log-directory=removable

Please Note: If at any point you are unable to unmount, please run the following command:
Dism /cleanup-wim