Skip to main content
Barracuda MSP Partner Toolkit

Resolve "1 is not a supported code page." error from Managed Workplace logs

If Windows was installed without a full language pack, proper locale or the language pack is corrupted it will use the default qaa-latn language code. As this is not a valid configuration certain aspects of Managed Workplace will not function, this may also affect other applications that utilize the locale. To remove the invalid language ensure that all Windows updates are installed on the client system and that the logged in user is using a valid locale and language pack eg. en-us

  1. Download PSExec from https://docs.microsoft.com/en-us/sysinternals/downloads/psexec and extract it to a known location eg. C:\PSTools
  2. Opening an administrative command prompt or Powershell Window
  3. Set PSExec to run powershell as the local system account 
    • eg. C:\PSTools\PSExec.exe \\localhost -s Powershell
  4. Ensure that Powershell is running under the local system account by running whoami
  5. Run the following in the Powershell Window
    • <#
      This script adds qaa-latn to the accounts locale settings (if it doesnt already exist) and then deletes it from the account
      #>
      $LanguageList = Get-WinUserLanguageList
      $LanguageList.Add("qaa-latn")
      Set-WinUserLanguageList $LanguageList -Force
      $LanguageList = Get-WinUserLanguageList
      $Language = $LanguageList | where LanguageTag -eq "qaa-Latn"
      $LanguageList.Remove($Language)
      Set-WinUserLanguageList $LanguageList -Force
      
  6. Restart the client System 
  7. Make the changes in the System Settings as shown in the screenshot. image001.png
  8. If the Device Manager was already installed it will automatically start up after the restart has completed and begin to communicate. 
  • Was this article helpful?