Login | |
|
 |
RE: Detecting MUI OSLanguage - 12/11/2006 3:15:33 PM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
try this: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colOSes = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") For Each objOS in colOSes WScript.Echo "OS Language: " & objOS.OSlanguage for each lang in objOS.MUILanguages wscript.echo lang next Next I dont have any language packs installed so it errors out on my machine (at least I assume thats why)
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
 |
RE: Detecting MUI OSLanguage - 12/13/2006 1:09:52 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
quote:
ORIGINAL: snap_fl I tried the script, but it errors out after the first wscript.echo for the OSLanguage. I don't think this piece works: for each lang in objOS.MUILanguages wscript.echo lang next Also, my goal is to determine the 1 language that the current system is set to, the server image could have MUI packs for multiplelanguages installed. Any other ideas? Thanks! Sorry, my misunderstanding. I would assume that what you already had would work then.
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
|
|