You can try:

WMIQuery('OSLanguage','Win32_OperatingSystem',$computer,'Primary','True')

get WMIQuery() in the UDF forum
_________________________
How to ask questions the smart way <-----------> Before you ask