Skip to content

Instantly share code, notes, and snippets.

@mikepruett3
Created February 8, 2018 02:10
Show Gist options
  • Save mikepruett3/6be015b6735eead6a1ec39b56e7f9d85 to your computer and use it in GitHub Desktop.
Save mikepruett3/6be015b6735eead6a1ec39b56e7f9d85 to your computer and use it in GitHub Desktop.
Install Windows Assessment and Deployment Kit (ADK), including the Windows PE feature
Click Start, and type deployment. Right-click Deployment and Imaging Tools Environment and then select Run as administrator.
In the Deployment Tools and Imaging Environment, copy the WinPE files for the PCs you want to boot. The 64-bit version can boot 64-bit UEFI and 64-bit BIOS PCs.
copype amd64 C:\WinPE_amd64
The 32-bit version of WinPE can boot 32-bit UEFI, 32-bit BIOS, and 64-bit BIOS PCs.
copype x86 C:\WinPE_x86
Mount the WinPE image.
Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"
Modify the Startnet.cmd script to include your customized commands. This file is located at
C:\WinPE_amd64\mount\Windows\System32\Startnet.cmd
... after winpeinit ...
net start server
net use S: \\<server>\<share> /U:<server>\<username> <password>
Enable SMB1 Feature
dism.exe /Image:"C:\WinPE_amd64\mount" /enable-feature /featurename=SMB1Protocol-client
Unmount WinPE Image
Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment