Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List the Operating System Running on a ComputerContent of List the Operating System Running on a Computer.vbsMD5 Hash: F04FF14F9505B58AD4500B9CDF09268D |
||
' Description: Returns the name and version number of the operating system installed on a computer.
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 | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |