Windows Assessment and Deployment Kit
Prerequisite
Installation
- Open the donwloaded ISO
- Run
adksetup
- Select all features available
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
Pass 1
UserData
- navigate to Left Bottom Panel `Windows Image
- Expand
Components
- Expand
amd64_Microsoft-Windows-Setup_*
- Right Click
UserData
andAdd Setting to Pass 1
- Expand
- Navigate to Middle Top Panel
Answer File
- Click
UserData
- Click
- Navigate to Right Top Panel
UserData Properties
- Set
AcceptEula
totrue
- 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
SetupUILanguage
andAdd Setting to Pass 1
- Expand
- Navigate to Middle Top Panel
Answer File
- Click
SetupUILanguage
- Click
- Navigate to Right Top Panel
SetupUILanguage Properties
- Set
UILanguage
toen-US
- Set
- Navigate to Left Bottom Panel `Windows Image
Pass 7
OOBE
andUserAccounts
- Navigate to Left Bottom Panel `Windows Image
- Expand
Components
- Right Click
amd64_Microsoft-Windows-International-Core_neutral
andAdd Setting to Pass 7
- Expand
amd64_Microsoft-Windows-Shell-Setup_*
- Right Click
OOBE
andAdd Setting to Pass 7
- Right Click
UserAccounts
andAdd 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
HideEULAPage
totrue
- Set
HideOEMRegistrationScreen
totrue
- Set
HideOnlineAccountScreens
totrue
- Set
HideWirelessSetupInOOBE
totrue
- Set
NetworkLocation
toWork
- Set
SkipMachineOOBE
totrue
- Set
SkipUserOOBE
totrue
- Set
- Navigate to Middle Top Panel
Answer File
- Expand
UserAccounts
- Delete
DomainAccounts
- Click
AdministratorPassword
- Expand
- Navigate to Right Top Panel
AdministratorPassword Properties
- Set
Value
topassword
- Set
- Navigate to Middle Top Panel
Answer File
- Right Click
LocalAccounts
and selectInsert New Local Account
- Click the new
LocalAccount
- Right Click
- Navigate to Right Top Panel
LocalAccount Properties
- Set
DisplayName
toUser
- Set
Group
toAdministrators
- Set
Name
toUser
- Set
- Navigate to Middle Top Panel
Answer File
- Click
password
under the newLocalAccount
we 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
InputLocale
toen-US
- Set
SystemLocale
toen-US
- Set
UILanguage
toen-US
- Set
UILanguageFallback
toen-US
- Set
UserLocale
toen-US
- Set
- Navigate to Left Bottom Panel `Windows Image
Save Answer File
- Navigate to
File
>Save Answer File As
- Save it
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
-
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.