At the session I presented with Michael Niehaus on customizing Windows 11 at MMS 2022 in Minneapolis we talked about the new PowerShell support for installing Language packs and set system language which are included in the Windows 11 Insider build 22257. During the session we got the question if it works together with AutoPilot so of course I had to test it out.
The new PowerShell support in Windows 11 adds the following new commands.
Install-Language
Get-InstalledLanguage
Set-SystemPreferredUILanguage
Get-SystemPreferredUILanguage
Uninstall-Language
The new commands makes it easy to install language and manage language settings which is great! The language pack files needed are downloaded automatically when the command runs.
Get installed languages
What about AutoPilot then?
I just made a simple test, with a Script in Intune to see if it works and fulfills the purpose of installing the language pack during AutoPilot. I made a simple script that install Swedish Language and sets Swedish as the default language on the computer. Imported the script in Intune and deployed it.
Install-language -language sv-se
Set-SystemPreferredUILanguage -language sv-se
It works, my test-machines are in Swedish. When first logged in when ESP completes the language of the computer is Swedish as we would expect it to be.
But when running the get-installedLanguage it shows some interesting result showing that Swedish is installed but without any features. Also tested running Install-Language using Win32App instead of using a script and the result is the same.
I have tested this on Build 2261 and 22579 and the result is the same. My conclusion is, yes it works and as far as I can see it in Windows everything looks ok but checking the output it indicates that not all features could be installed.
If I make the Win32app available and run it through Company Portal it works just fine and the Get-InstalledLanguage module returns the correct feature pack installed as well. So that works!
I will continue testing this with later builds and update the post when and if there are any news.
Hi,
do you know if this new PS commands would be also made available with W10? I’m currently using Michael’s Branding script to set the language but the only cab file i found was from 2019. The way Oliver provides need a user session and will not work during OOBE. Other alternatives i could’nt find.
greetings
Martin
Hi,
I have not seen anything about it yet at least.
Regards,
Jörgen
Hello Jörgen
Thanks for your Blog and iam testing this solution.
I just have a question about assignment, should it be assigned to a device or to a user?
Thanks and kind regards
I have deployed it to device when I use it
Hi Martin. I just tested those cmdlets in a W10 21H1 and they are there and work. Hope that it helps you.
A bit of necroposting here. But It works as of now with current builds (no preview).
Install-Language -Language sv-SE -CopyToSettings -Verbose
Set-SystemPreferredUILanguage -Language sv-SE
Set-PreferredLanguage -Language sv-SE
Got a autounattend based on a en-US iso (developer network download, en-us_windows_11_consumer_editions_version_23h2_updated_feb_2024_x64_dvd_9665512b.iso, but should work with the media creation iso too) it comes up all Swedish with features in place.
The addition of language is done at a second reboot through a startup as “SYSTEM” scheduled task. I’ve chained like 4 restarts this way through out the installation to get everything in place.