HEELPBOOK - VBScript – List the Operating System Running on a Computer ################ ######## Description ############ Returns the name and version number of the operating system installed on a computer. ######## Example(s) ############ 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 objOperatingSystem.Caption & " " & _ objOperatingSystem.Version Next ############ ARTICLE INFO ############# Article Month: February Article Date: 29/02/2012 Permalink: http://heelpbook.altervista.org/2012/vbscript-list-the-operating-system-running-on-a-computer/ Source: http://www.activexperts.com/admin/scripts/vbscript/1012/ Language: English View more articles on: http://www.heelpbook.net/ Follow us on Facebook: http://it-it.facebook.com/pages/HeelpBook/100790870008832 Follow us on Twitter: https://twitter.com/#!/HeelpBook Follow us on RSS Feed: http://feeds.feedburner.com/Heelpbook