Powershell script not applying correct - Intune

SauPom 1 Reputation point
2022-12-01T12:04:19.577+00:00

I have this PS script and when run directly on PC, it works like it should, but when applying with Intune it´s not working like it should.

$languageList = Get-WinUserLanguageList
$LanguageList.Remove(($LanguageList | Where-Object LanguageTag -like 'fi'))
$LanguageList.Add("en-FI")
$LanguageList.Add("en-GB")
$LanguageList.Add("en-US")
Set-WinUserLanguageList -LanguageList $LanguageList -Force

When it is applied from Intune, it removes all the end users languages and leaves only en-GB.

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,288 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SauPom 1 Reputation point
    2022-12-02T04:33:04.53+00:00

    ----------

    Yes, indeed, it is very strange behaviour and it is same for all the machines I have tried to applied that.

    266360-intune.jpg


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.