This scripte is demonstrate in VBscript language. I how you could embed it in your application: Set dtmConvertedDate = CreateObject("WbemScripting.SWbemDateTime") strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems Wscript.Echo "Caption: " & objOperatingSystem.Caption Next For more information try to read this article.[^]
A thousand mile of journey, begin with the first step. APO-CEDC Save Children Norway-Cambodia Office