#
Microsoft Windows ADK
Microsoft Windows ADK Installation Guide
https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install
Warning
Winget install doesn't work when I last tested this so you'll have to use the link above to download the ADK installer.
Microsoft Windows ADK is used for the Windows PE creation process and the optional components are required. These instructions are for the 24H2 version of the ADK. If you are using a different version, you may need to adjust the instructions accordingly.
winget install --id Microsoft.WindowsADK -e -v 10.1.26100.2454 --accept-source-agreements --accept-package-agreements --wait --override '/features OptionId.DeploymentTools OptionId.Documentation OptionId.ImagingAndConfigurationDesigner /quiet /ceip off /norestart'
#
Microsoft Windows ADK WinPE Addon
For some reason Microsoft does not show this in winget anymore, so this will have to do.
$Url = 'https://go.microsoft.com/fwlink/?linkid=2289981'
Invoke-Expression "& curl.exe --insecure --location --output `"$env:TEMP\adkwinpesetup.exe`" --url `"$Url`""
Start-Process -FilePath "$env:TEMP\adkwinpesetup.exe" -ArgumentList '/features', 'OptionId.WindowsPreinstallationEnvironment', '/quiet', '/ceip', 'off', '/norestart' -Wait