To change the Windows display language "from a script"

Good day! There is a problem: you need to conditionally change the display language of the user interface in Windows 2008 R2.
Pitfalls like penelopedevine like taken into account, it is assumed that the desired language is already installed.
The question is how to do it "from the command line" — it does not matter, PowerShell, CLI, VBScript, via the Registry, COM objects,... but only to be able to do it automatically.
Immediately warn that the policy is not suitable, because you do not know who to hang kind of policy.
October 3rd 19 at 03:59
4 answers
October 3rd 19 at 04:01
Regshot'Ohm tracked the changes to the registry, under the new language (EN-RU) from the control panel of Windows 8.1, it turned out the file (after cleaning the debris):

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"PreferredUILanguagesPending"=hex(7):72,00,75,00,2 d,00,52,00,55,00,00,00
; this EN-in hex

[HKEY_CURRENT_USER\Control Panel\Desktop\LanguageConfigurationPending]
"EN-us"=hex(7):65,00,6 e,00,2 d,00,55,00,53,00,00,00,00,00
; this en-US hex


tested on clean system — used file, rebooted the system, changed the language from English. Russ.
99% that this tweak will work for 2008, because Yu architecture identical.
well, to import a reg tweak via
Thanks, yeah, kind of went.
But just wanted something more "native" than tweaking of the registry. Well, you know - oswaldo.Jenkins commented on October 3rd 19 at 04:04
quite know but Google only variant of the first to comment - Amparo.Hyatt55 commented on October 3rd 19 at 04:07
October 3rd 19 at 04:03
Thanks, there is a HELL, I will not be able to answer it or not. - oswaldo.Jenkins commented on October 3rd 19 at 04:06
October 3rd 19 at 04:05
Dism /image:C:\test\offline /Set-UILang:fr-FR
no, I will not go — this is only for offline system (image). - oswaldo.Jenkins commented on October 3rd 19 at 04:08
October 3rd 19 at 04:07
Powershell — Set-WinSystemLocale ja-JP
This is only for Win 6.2 (8 \ 2012), unfortunately. - oswaldo.Jenkins commented on October 3rd 19 at 04:10

Find more questions by tags Windows