detecting Windows XP language version for SP2 installation

G

Guest

rHi,

We and some of our clients (my company is a Microsoft Certified Partner)
will have to deploy XP SP2 in a mixed Windows XP language versions
environments. Typically it include English Windows XP Pro (w/ SP1a) with
Russian MUI installed and pure Russian Windows XP Pro (w/ SP1a). As we need
to install English SP2 (with some optional MUI SP2 updates available
separately) on the English XP + MUI workstations and Russian SP2 on the
Russian XP workstations, I wonder how can we detect the language version
installed to apply correct service pack language version?

I believe there is a setting(s) in registry that could be analyzed to figure
out the language of OS. I didn't find this information in the wealth of
resources available. However I also believe it is somewhere there (on the
TechNet site? in the PSS KB articles?) A link to the page/docuement with this
information will be much appreciated.

Thank you very much in advance,
nik
 
T

Torgeir Bakken \(MVP\)

nik said:
We and some of our clients (my company is a Microsoft Certified Partner)
will have to deploy XP SP2 in a mixed Windows XP language versions
environments. Typically it include English Windows XP Pro (w/ SP1a) with
Russian MUI installed and pure Russian Windows XP Pro (w/ SP1a). As we need
to install English SP2 (with some optional MUI SP2 updates available
separately) on the English XP + MUI workstations and Russian SP2 on the
Russian XP workstations, I wonder how can we detect the language version
installed to apply correct service pack language version?
Hi

With a VBScript:

'--------------------8<----------------------
sComputer = "." ' use "." for local computer
Set oWMI = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & sComputer _
& "\root\cimv2")

Set colOperatingSystems = oWMI.ExecQuery _
("Select * from Win32_OperatingSystem")

For Each oOS in colOperatingSystems
iOSLang = oOS.OSLanguage
Next

WScript.Echo "Decimal OS language number: " & iOSLang
WScript.Echo "Hex OS language number: " & Right("000" & Hex(iOSLang), 4)
'--------------------8<----------------------

The script above will return 1033 (hex 0409) for an English OS.

You can map the hex value to the country using the list under
this registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Rfc1766


For a script that does this for you automatically, take a
look at this link:

http://groups.google.com/[email protected]

It will give you this type of information/output:

OS version: Microsoft Windows 2000 Professional
SP version: Service Pack 2
OS language: English
Regional Settings for user is set to: Norway
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top