Common Elements for Windows Answer Files

This page details the fundamental answer file settings you will need for a “zero touch” deployment of Windows 11 Enterprise, but also includes settings for custom logos, wallpapers, OEM support information, running commands, creating accounts, etc. You should substitute your own information for values encapsulated in [SQUARE BRACKETS]. Settings that reference PNG files in %windir%\System32\OEM presume you have mounted the WIM and added icon.png, logo.png, and wallpaper.png files as described in Customizing the Windows Installer Media.

Use these suggestions and Microsoft’s guidance on Answer Files and see How Configuration Passes Work to determine the best settings for your use case.

1 windowsPE

In this phase, we set the language and disk configuration. For more information, please see windowsPE. Add Components > amd64_Microsoft-Windows-International-Core-WinPE_neutral to 1 windowsPE:

ElementValue
InputLocaleen-US
SystemLocaleen-US
UI Languageen-US
UILanguageFallbacken-US
USerLocaleen-US
SetupUILanguage > UILanguageen-US
SetupUILanguage > WillShowUIOnError

Add Components > amd64_Microsoft-Windows-Setup_neutral > DiskConfiguration to 1 windowsPE:

ElementValue
WillShowUIOnError
Disk > ID0
Disk > WillWipeDisktrue

Right-click CreatePartitions and click CreatePartition:

ElementValue
Order1
Size300
TypePrimary

Right-click CreatePartitions and click CreatePartition:

ElementValue
Order2
Size100
TypeEFI

Right-click CreatePartitions and click CreatePartition:

ElementValue
Order3
Size128
TypeMSR

Right-click CreatePartitions and click CreatePartition:

ElementValue
Order4
Extendtrue
TypePrimary

Right-click DiskConfiguration and click ModifyPartition:

ElementValue
Order1
PartitionID1
FormatNTFS
LabelWINRE
TypeIDDE94BBA4-06D1-4D40-A16A-BFD50179D6AC

Right-click DiskConfiguration and click ModifyPartition:

ElementValue
Order2
PartitionID2
FormatFAT32
LabelSystem

Right-click DiskConfiguration and click ModifyPartition:

ElementValue
Order3
PartitionID3

Right-click DiskConfiguration and click ModifyPartition:

ElementValue
Order4
PartitionID4
FormatNTFS
LabelWindows
LetterC

Add Components > amd64_Microsoft-Windows-Setup_neutral > ImageInstall > OSImage > InstallTo to 1 windowsPE:

ElementValue
DiskID0
PartitionID4

Add Components > amd64_Microsoft-Windows-Setup_neutral > UserData to 1 windowsPE:

ElementValue
AcceptEulatrue
FullName[DEPARTMENT]
Organization[COMPANY]
UserData > ProductKey[PRODUCT KEY]
UserData > WillShowUIOnError

2 offlineServicing

In this phase, we set the computer name. If you leave this out, the installer will generate a random computer name. For more information, please see offlineServicing. Add Components > amd64_Microsoft-Windows-Shell-Setup_neutral > ComputerName to 2 offlineServicing:

ElementValue
ComputerName[COMPUTER NAME]

4 specialize

In this phase, we can set OEM information, run commands, etc. within the running environment of the new installation. At this point, the local Administrator account password has not been set. For more information, please see specialize. Add Components > amd64_Microsoft-Windows-International-Core_neutral to 4 specialize:

ElementValue
InputLocaleen-US
SystemLocaleen-US
UILanguageen-US
UILanguageFallbacken-US
UserLocaleen-US

Add Components > amd64_Microsoft-Windows-MicrosoftEdgeBrowser_neutral > FavoriteBarItems > FavoriteBarItem to 4 specialize:

ElementValue
ItemKey1
ItemName[LINK NAME]
ItemUrl[LINK ADDRESS]

Add Components > amd64_Microsoft-Windows-Deployment_neutral > RunSynchronousCommand to 4 specialize:

ElementValue
Order1
Description[DESCRIPTION]
Path[COMMAND]

Add Components > amd64_Microsoft-Windows-Shell-Setup_neutral > OEMInformation to 4 specialize:

ElementValue
OEMName[COMPANY]
ProductKey[PRODUCT KEY]
OEMInformation > Logo%windir%\system32\OEM\logo.png
OEMInformation > Manufacturer[COMPANY]
OEMInformation > Model[MODEL]
OEMInformation > SupportHours[HOURS]
OEMInformation > SupportPhone[SUPPORT PHONE NUMBER]
OEMInformation > SupportProvider[SUPPORT DEPARTMENT NAME]
OEMInformation > SupportURL[SUPPORT LINK]

Add Components > amd64_Networking-MPSSVC-Svc to 4 specialize:

ElementValue
DomainProfile_EnableFirewallfalse
PrivateProfile_EnableFirewallfalse
PublicProfile_EnableFireWAllfalse

7 oobeSystem

In this phase, we define settings for the first boot and [user] login. For more information, please see oobeSystem. Add Components > amd64_Microsoft-Windows-International-Core_neutral to 7 oobeSystem:

ElementValue
InputLocaleen-US
SystemLocaleen-US
UILanguageen-US
UILanguageFallbacken-US
UserLocaleen-US

Add Components > amd64_Microsoft-Windows-Shell-Setup_neutral > OOBE to 7 oobeSystem:

ElementValue
HideEULAPagetrue
ProtectYourPC1
HideLocalAccountScreentrue
HideOEMRegistrationScreenstrue
HideOnlineAccountScreenstrue
HideWirelessSetupInOOBEtrue

Add Components > amd64_Microsoft-Windows-Shell-Setup_neutral > Themes to 7 oobeSystem:

ElementValue
BrandIcon%windir%\System32\OEM\icon.png
DesktopBackground%windir%\System32\OEM\wallpaper.png
ThemeName[THEME NAME]
WindowColoroxff[COLOR HEX VALUE]

Add Components > amd64_Microsoft-Windows-Shell-Setup_neutral > UserAccounts > LocalAccounts to 7 oobeSystem. Right-click LocalAccounts and click LocalAccount:

ElementValue
Password > VAlue[PASSWORD]
DescriptionBuilt-in account for administering the computer/domain
DisplayNameAdministrator
GroupAdministrators
NameAdministrator