Forum Discussion
SamuelBlättler
Dec 23, 2022Copper Contributor
Issue with Install-Language cmdlet when used in Win32 Intune package
I wrote a small PowerShell script that installs 3 language packages to a Windows 11 22H2 client. This script needs to run elevated. During testing, I used Psexec64 -s to run the script i...
- Dec 23, 2022Does this approach work? https://www.inthecloud247.com/install-an-additional-language-pack-on-windows-11-during-autopilot-enrollment/
SamuelBlättler
Dec 23, 2022Copper Contributor
Thanks for your reply! Tried Import-Module LanguagePackManagement before I did the post but did not solve the issue (can't remember the error message)
Dec 23, 2022
Does this approach work? https://www.inthecloud247.com/install-an-additional-language-pack-on-windows-11-during-autopilot-enrollment/
- SamuelBlättlerDec 23, 2022Copper Contributor
Harm_Veenstra Thanks for the link, very interesting. Will have a look at it after Holidays and wii let you know!
- Dec 23, 2022Please do and have a nice holiday!
- SamuelBlättlerDec 24, 2022Copper Contributor
Harm_Veenstra I think I found the issue! The link to Peters script was the key. Right at the beginning he ensures that script runs as 64 bit Powershell instance..
So I started a Powershell 32 bit process and entered get-InstalledLanguage... And this cmdlet failed! Entering the same comand in a 64 Bit environment worked!
Not sure if this is a Powershell bug or by design, but I can now workaround it by using above Powershell-Code from Peter Klapwijk. Thanks for pointing me in the right directon!
But now... lets enjoy holiday first!