Hi guys, hope you are all good and can assist.
We are using an Enterprise build with 10 or so language packs installed.
The user has the option at the start of the build to choose their language.
What we need to do is to trap what language they selected.
This is the Default system UI language.
In the case of that language being English, then the Default system UI language is en-US.
We can grab this by:
dism /online /get-intl > test.txt
The output of test.txt is in the code snippet below.
I have tried different language selections, and the value for Default system UI language appears to be always on Line 9 in the text file.
So my question is.
Is there a way to read the test.txt file, and read a certain line number, in this case, line 9, and trap the value of Default system UI language into a variable?
I cannot do the folowing:
dism /Online /Get-Intl | find "Default system UI language"
This would work if the language chosen was English, but if the language chosen was Chinese for example, then
dism /Online /Get-Intl ^| find "Default system UI language"
would fail to find "Default system UI language" since the text is in Chinese.
Which is why I want to read line number 9, and find the value after the colon.
line9 (english) Default system UI language : en-US
line9 (german) <in german.....>: de-DE
So, something like,
1) read text file
2) read line number 9
if de-DE, then we know its German
if en-US, then we know its English
if es-ES, then we know its Spain
if fr-FR, then we know its France
if it-IT, then we know its Italy
if ja-JP, then we know its Japanese
if nb-NO, then we know its Norway
if pl-PL, then we know its Poland
if pt-BR, then we know its Brasil
if ru-RU, then we know its Russian
if zh-CN, then we know its Simplified Chinese
if zh-HK, then we know its Traditional Chinese
Any help greatly appreciated.
Deployment Image Servicing and Management tool
Image Version: 6.1.7600.16385
Reporting online international settings.
Default system UI language : en-US