Write-Host "Successfully added zh-cn basic language features." You can also generate a validation script to ensure the package matches the required architecture ( amd64 ) and CBS identifier ( 31bf3856ad364e35 ):
<component name="Microsoft-Windows-International-Core-WinPE" ...> <SetupUILanguage> <UILanguage>zh-CN</UILanguage> </SetupUILanguage> <UILanguage>zh-CN</UILanguage> </component> Then during deployment, the .cab would be applied using: Write-Host "Successfully added zh-cn basic language features
[string]$ImagePath # If omitted, applies to online OS ) Then during deployment
if ($packages -match "Install State : Installed") Write-Host "Language feature already installed. Skipping." exit 0 $addArgs = $dismArgs + @('/Add-Package', "/PackagePath:$CabPath") Write-Host "Adding language feature CAB..." & dism $addArgs Write-Host "Successfully added zh-cn basic language features
$dismArgs = @('/English', '/Quiet', '/LogLevel', '1')