Outcome of PowerShell code to remove language in Windows10


  1. Posts : 20
    Windows 10 Pro
       #1

    Outcome of PowerShell code to remove language in Windows10


    Hello all,

    I cannot add any new language under settings, I have no language bar in control panel, and I learned there is a bug in my Windows 10 Pro 1803 version.
    So after using the command below (with help of Powershell):

    Code:
    $LangList = Get-WinUserLanguageList
    $MarkedLang = $LangList | where LanguageTag -eq <sr_Latn-RS>
    $LangList.Remove($MarkedLang)
    Set-WinUserLanguageList $LangList -Force
    I got this outcome:

    Code:
        PS C:\WINDOWS\system32> $LangList = Get-WinUserLanguageList
        >> $MarkedLang = $LangList | where LanguageTag -eq <sr_Latn-RS>
        >> $LangList.Remove($MarkedLang)
        >> Set-WinUserLanguageList $LangList -Force
        At line:2 char:49
        + $MarkedLang = $LangList | where LanguageTag -eq <sr_Latn-RS>
        +                                                 ~
        The '<' operator is reserved for future use.
            + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
            + FullyQualifiedErrorId : RedirectionNotSupported
    Could you please explain me the meaning of outcome of this command?
    I do not know any more, what to do.
    Could you please try to help because this problem is very annoying to me (I am translator translating from 4 languages to Czech and Serbian took over "thanks" to the Windows 10 system).
    PS: I do not know what is the difference between "display languages" and "language packs" if it is needed in this context.

    Thank you in advance!

    Milada
      My Computer


  2. Posts : 5,478
    2004
       #2

    You need to replace <sr_Latn-RS> with the language you want to remove without the <, > which is shorthand for "Put your value here".

    You can type the powershell lines separately - it is easier to see what is happening.

    First set $LangList and display it (by just typing the variable name and enter) to see what is installed :
    Code:
    $LangList = Get-WinUserLanguageList
    $LangList
    Then change <sr_Latn-RS> in the $MarkedLang line to whatever you want to remove - in my case sr-Cyrl-ME which is Serbian Cyrillic. This works fine for me - see the picture below.

    Outcome of PowerShell code to remove language in Windows10-capture.png
      My Computer


  3. Posts : 20
    Windows 10 Pro
    Thread Starter
       #3

    Thank you for your reply.
    Here is the outcome of the command:
    Code:
    LanguageTag     : sr-Latn-RS
    Autonym         : srpski (Srbija)
    EnglishName     : Serbian
    LocalizedName   : Srbština (latinka, Srbsko)
    ScriptName      : Latinka
    InputMethodTips : {241A:0000081A}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : cs
    Autonym         : čeština
    EnglishName     : Czech
    LocalizedName   : Čeština
    ScriptName      : Latinka
    InputMethodTips : {0405:00000405}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : de-DE
    Autonym         : Deutsch (Deutschland)
    EnglishName     : German
    LocalizedName   : Němčina (Německo)
    ScriptName      : Latinka
    InputMethodTips : {0407:00000407}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : it-IT
    Autonym         : italiano (Italia)
    EnglishName     : Italian
    LocalizedName   : Italština (Itálie)
    ScriptName      : Latinka
    InputMethodTips : {0410:00000410}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : fr-FR
    Autonym         : français (France)
    EnglishName     : French
    LocalizedName   : Francouzština (Francie)
    ScriptName      : Latinka
    InputMethodTips : {040C:0000040C}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : en-GB
    Autonym         : English (United Kingdom)
    EnglishName     : English
    LocalizedName   : Angličtina (Spojené království)
    ScriptName      : Latinka
    InputMethodTips : {0809:00000809}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : ru
    Autonym         : русский
    EnglishName     : Russian
    LocalizedName   : Ruština
    ScriptName      : Cyrilice
    InputMethodTips : {0419:00000419}
    Spellchecking   : True
    Handwriting     : False
    and then the false outcome of:
    Code:
    LanguageTag     : sr-Latn-RS
    Autonym         : srpski (Srbija)
    EnglishName     : Serbian
    LocalizedName   : Srbština (latinka, Srbsko)
    ScriptName      : Latinka
    InputMethodTips : {241A:0000081A}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : cs
    Autonym         : čeština
    EnglishName     : Czech
    LocalizedName   : Čeština
    ScriptName      : Latinka
    InputMethodTips : {0405:00000405}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : de-DE
    Autonym         : Deutsch (Deutschland)
    EnglishName     : German
    LocalizedName   : Němčina (Německo)
    ScriptName      : Latinka
    InputMethodTips : {0407:00000407}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : it-IT
    Autonym         : italiano (Italia)
    EnglishName     : Italian
    LocalizedName   : Italština (Itálie)
    ScriptName      : Latinka
    InputMethodTips : {0410:00000410}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : fr-FR
    Autonym         : français (France)
    EnglishName     : French
    LocalizedName   : Francouzština (Francie)
    ScriptName      : Latinka
    InputMethodTips : {040C:0000040C}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : en-GB
    Autonym         : English (United Kingdom)
    EnglishName     : English
    LocalizedName   : Angličtina (Spojené království)
    ScriptName      : Latinka
    InputMethodTips : {0809:00000809}
    Spellchecking   : True
    Handwriting     : False
    
    LanguageTag     : ru
    Autonym         : русский
    EnglishName     : Russian
    LocalizedName   : Ruština
    ScriptName      : Cyrilice
    InputMethodTips : {0419:00000419}
    Spellchecking   : True
    Handwriting     : False
    Outcome of PowerShell code to remove language in Windows10-schranka-2.jpg
      My Computer


  4. Posts : 20
    Windows 10 Pro
    Thread Starter
       #4

    sorry, the wrong copied segment - should have been:

    Code:
    PS C:\WINDOWS\system32> $LangList = Get-WinUserLanguageList
    >> $MarkedLang = $LangList | where LanguageTag -eq sr_Latn-RS
    >> $LangList.Remove($MarkedLang)
    >> Set-WinUserLanguageList $LangList -Force
    False
    Set-WinUserLanguageList : Byla vyvolána výjimka typu System.Exception.
    At line:4 char:1
    + Set-WinUserLanguageList $LangList -Force
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidResult: (:) [Set-WinUserLanguageList], Exception
        + FullyQualifiedErrorId : -2147024891 = Error name,Microsoft.InternationalSettings.Commands.SetWinUserLanguageList
       Command
    
    PS C:\WINDOWS\system32> $MarkedLang = $LangList | where LanguageTag -eq sr_Latn-RS
    PS C:\WINDOWS\system32> $LangList.Remove($MarkedLang)
    False
    PS C:\WINDOWS\system32>
      My Computer


  5. Posts : 20
    Windows 10 Pro
    Thread Starter
       #5

    with respect to me mentioning the difference between "language" and "language packs", here is a screenshot of Language folder in Registry
    Outcome of PowerShell code to remove language in Windows10-schranka-4.jpg

    and that of of Language groups folder in Registry likewise
    Outcome of PowerShell code to remove language in Windows10-schranka-6.jpg
      My Computer


  6. Posts : 5,478
    2004
       #6

    I don't know why you are getting this :
    Code:
    Set-WinUserLanguageList $LangList -Force
    False
    Set-WinUserLanguageList : Byla vyvolána výjimka typu System.Exception.
    At line:4 char:1
    If you look above I get "True" and your error message is pretty vague.

    Did you try to delete it through control panel? It has disappeared but I can still open it on 1803 like this : search "Run" then paste in shell:::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}

    Outcome of PowerShell code to remove language in Windows10-capture.png

    It still works that way too (at least on my version) and may be easier than powershell.

    As for system language, language packs etc check Get-Culture and dism /online /get-intl.
    Code:
    PS C:\Windows\system32> get-culture
    
    LCID             Name             DisplayName
    ----             ----             -----------
    2057             en-GB            English (United Kingdom)
    
    
    PS C:\Windows\system32> dism /online /get-intl
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17134.1
    
    Image Version: 10.0.17134.285
    
    Reporting online international settings.
    
    Default system UI language : en-US
    System locale : en-US
    Default time zone : Romance Standard Time
    Active keyboard(s) : 0409:0000040c
    Keyboard layered driver : PC/AT Enhanced Keyboard (101/102-Key)
    
    Installed language(s): en-US
      Type : Fully localized language.
    Installed language(s): sr-Cyrl-RS
      Type : Partially localized language, LIP type.
    
    The operation completed successfully.
    PS C:\Windows\system32>
    See these : See Default System Language of Windows 10 | Windows 10 Tutorials and for description of differences between different language pack types : Add Language Packs to Windows | Microsoft Docs
      My Computer


  7. Posts : 20
    Windows 10 Pro
    Thread Starter
       #7

    Thank you for giving me the shell command:
    Code:
    shell:::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}
    which finally showed a screen I could not get from Windows 10 (as the Language bar does not show in the control panel)
    This is what I got:
    Outcome of PowerShell code to remove language in Windows10-shell-command1.jpg
    "Odebrat" (Remove) is greyed.
    So I clicked on the language in question, got this screen:
    Outcome of PowerShell code to remove language in Windows10-shell-command2.jpg
    "Odebrat" (Remove) is greyed.
    After clicking on the Back button, I got this screen:
    Outcome of PowerShell code to remove language in Windows10-shell-command3.jpg
    with a clickable button for "Odebrat".
    When clicking on the button, the folder closed itself/vanished and I had to run your code again.

    Remark: when saving files at some "level" the description of commands is sometimes in Czech, sometimes in Serbian.

    Thank you also for providing those useful links in the ten forum for opening the PowerShell (1. Open an elevated command prompt.) as it was impossible to open from the Start button.

    Here is the screenshot for the outcome of those two commands suggested by you:
    Outcome of PowerShell code to remove language in Windows10-powershell-outcome.jpg

    Perhaps one more indication might be useful (I forgot to mention before): I have several lpksetup.exe.mui files on my NB (apart from the one in the C folder). I was not sure if they can be simply deleted so I downloaded AdwClenear (some maleware disappeared, but not the files...).

    Thank you in advance for your reply and have a good weekend,

    Milada
      My Computer


  8. Posts : 5,478
    2004
       #8

    I'm not sure then why you can't remove it - you tried lpksetup.exe /u I guess?

    In my tests I could add and remove languages no problem but I did see (only on google though) some issues in 1803 release with grayed out remove button and failure to remove languages.

    Perhaps @Kari would know as I know he uses many more languages than me.
      My Computer


  9. Posts : 20
    Windows 10 Pro
    Thread Starter
       #9

    yes, indeed, I even tried this code
    Code:
    lpksetup.exe /u sr-Latn-RS
    Now, when using your code
    Code:
    lpksetup.exe /u
    , I got this screen:
    Outcome of PowerShell code to remove language in Windows10-lpksetup-command.jpg
    selected Serbian, got a window confirming the uninstallation:
    Outcome of PowerShell code to remove language in Windows10-confirmation-uninstallation.jpg

    I tried again your code
    Code:
    shell:::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}
    , but the language is still not possible to be taken off ("Odebrat" - Remove is not clickable)

    However, when I try to download a file either in a Windows application or online, the commands are in Czech for online downloads and in Serbian for a display in a Windows app:
    Outcome of PowerShell code to remove language in Windows10-windows-serbian.jpg

    Thank you for the contact to your colleague.
    Thank you very much for having replied and for having taken care of the issue.
    Best wishes,

    Milada
    Attached Thumbnails Attached Thumbnails Outcome of PowerShell code to remove language in Windows10-uninstallation.jpg  
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:27.
Find Us




Windows 10 Forums