I'm trying to integrate stuff like other languages to my offline image, I tried doing something like this in my script.
$cabFiles = Get-ChildItem -Path "$PSScriptRoot\cabs" -Recurse -Include *.cab, *.esd
foreach ($cab in $cabFiles) {
Write-Host "Installing $($cab.Name)..."
& dism.exe /English `
"/Image:$tempFolder" `
/Add-Package `
"/PackagePath:$($cab.FullName)"
}
I got the cab files from uupdump
── Microsoft-Windows-Client-LanguagePack-Package-amd64-fr-FR.esd
── Microsoft-Windows-LanguageFeatures-Basic-fr-fr-Package-amd64.cab
── Microsoft-Windows-LanguageFeatures-Handwriting-fr-fr-Package-amd64.cab
── Microsoft-Windows-LanguageFeatures-OCR-fr-fr-Package-amd64.cab
── Microsoft-Windows-LanguageFeatures-Speech-fr-fr-Package-amd64.cab
── microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab
But when I run my script I get "The source files could not be found. Use the "Source" option to specify the location of the files that are required to restore the feature. Error: 0x800f081f"
What am I doing wrong?