Retrieve all properties related to the Operating System class wmic OS Retrieve the Version property of the Operaring System class wmic OS get Version Retrieve the Version property of the Operaring System class on the specified computer wmic OS /node:<computername> get Version
Retrieve all properties of the Operating System class on the local computer. The strComputer variable can be changed to the name of a remote computer.
strComputer = "." strNameSpace = "root\cimv2" strClass = "Win32_OperatingSystem" Set objClass = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\" & strNameSpace & ":" & strClass) WScript.Echo strClass & " Class Properties" WScript.Echo "------------------------------" For Each objClassProperty In objClass.Properties_ WScript.Echo objClassProperty.Name Next