Windows Assessment and Deployment Kit
Prerequisite
Installation
Section titled “Installation”- Open the donwloaded ISO
- Run
adksetup - Select all features available
Starting up
Section titled “Starting up”- Open
Windows System Image Manager - Navigate to
File>New Answer File - Click Yes to open a Windows Image now
- Select the Image for the Version of Windows you want to create an answer file
Passes
Section titled “Passes”Pass 1
Section titled “Pass 1”UserData- navigate to Left Bottom Panel `Windows Image
- Expand
Components - Expand
amd64_Microsoft-Windows-Setup_* - Right Click
UserDataandAdd Setting to Pass 1
- Expand
- Navigate to Middle Top Panel
Answer File- Click
UserData
- Click
- Navigate to Right Top Panel
UserData Properties- Set
AcceptEulatotrue
- Set
- navigate to Left Bottom Panel `Windows Image
SetupUILanguage- Navigate to Left Bottom Panel `Windows Image
- Expand
Components - Expand
amd64_Microsoft-Windows-International-Core-WinPE_neutral - Right Click
SetupUILanguageandAdd Setting to Pass 1
- Expand
- Navigate to Middle Top Panel
Answer File- Click
SetupUILanguage
- Click
- Navigate to Right Top Panel
SetupUILanguage Properties- Set
UILanguagetoen-US
- Set
- Navigate to Left Bottom Panel `Windows Image
Pass 7
Section titled “Pass 7”OOBEandUserAccounts- Navigate to Left Bottom Panel `Windows Image
- Expand
Components - Right Click
amd64_Microsoft-Windows-International-Core_neutralandAdd Setting to Pass 7 - Expand
amd64_Microsoft-Windows-Shell-Setup_* - Right Click
OOBEandAdd Setting to Pass 7 - Right Click
UserAccountsandAdd Setting to Pass 7
- Expand
- Navigate to Middle Top Panel
Answer File- Expand
OOBE - Delete
VMModeOptimizations - Click
OOBE
- Expand
- Navigate to Right Top Panel
OOOBE Properties- Set
HideEULAPagetotrue - Set
HideOEMRegistrationScreentotrue - Set
HideOnlineAccountScreenstotrue - Set
HideWirelessSetupInOOBEtotrue - Set
NetworkLocationtoWork - Set
SkipMachineOOBEtotrue - Set
SkipUserOOBEtotrue
- Set
- Navigate to Middle Top Panel
Answer File- Expand
UserAccounts - Delete
DomainAccounts - Click
AdministratorPassword
- Expand
- Navigate to Right Top Panel
AdministratorPassword Properties- Set
Valuetopassword
- Set
- Navigate to Middle Top Panel
Answer File- Right Click
LocalAccountsand selectInsert New Local Account - Click the new
LocalAccount
- Right Click
- Navigate to Right Top Panel
LocalAccount Properties- Set
DisplayNametoUser - Set
GrouptoAdministrators - Set
NametoUser
- Set
- Navigate to Middle Top Panel
Answer File- Click
passwordunder the newLocalAccountwe created
- Click
- Navigate to Right Top Panel
Password Properties- Set value to `password
- Navigate to Left Bottom Panel `Windows Image
- Expand
Components
- Expand
- Navigate to Middle Top Panel
Answer File- Click
amd64_Microsoft-Windows-International-Core_neutral
- Click
- Navigate to Right Top Panel
Microsoft-Windows International-Core Properties- Set
InputLocaletoen-US - Set
SystemLocaletoen-US - Set
UILanguagetoen-US - Set
UILanguageFallbacktoen-US - Set
UserLocaletoen-US
- Set
- Navigate to Left Bottom Panel `Windows Image
Save Answer File
Section titled “Save Answer File”- Navigate to
File>Save Answer File As - Save it
Sysprep
Section titled “Sysprep”-
Copy the Answer File to the cleanup Windows 10 VM on
C:\Windows\System32\Sysprep -
Rename it to
unattend.xml -
Run
sysprep.exe -
System Cleanup Action:
Enter System Out-of-Box Experience (OOBE) -
Select
Generalize -
Shutdown Options:
Shutdown
Capture Image
Section titled “Capture Image”-
Change boot order of Win 10 VM to boot from Network (PXE).
-
Boot from PXE and select
Windows 10 Boot -
When you see the language selection, press Shift + F10
-
Connect to a network share and capture image with the following commands
Terminal window net user Z: \\NASIP\SHARE /user:USERNAME PASSWORDZ:\cd DIRECTORYdism /Capture-Image /ImageFile:Win10-Pro-20H1-Clean.wim /CaptureDir:C:\ /Name:"Windows 10 Pro 20H1 Clean" -
Now you can navigate to WDS and add the image.