Version - property in ROOT\CIMV2 namespace

Version in other namespaces

List of classes with Version local property in ROOT\CIMV2 namespace

propertyClassOrigin
Version__ClassProviderRegistration__ClassProviderRegistration
Version__Win32Provider__Win32Provider
VersionCIM_ActionCIM_Action
VersionCIM_CheckCIM_Check
VersionCIM_DataFileCIM_DataFile
VersionCIM_OperatingSystemCIM_OperatingSystem
VersionCIM_PhysicalElementCIM_PhysicalElement
VersionCIM_ProductCIM_Product
VersionCIM_SoftwareElementCIM_SoftwareElement
VersionCIM_SoftwareFeatureCIM_SoftwareFeature
VersionMSFT_WdsDriverPackageMSFT_WdsDriverPackage
VersionMSFT_WdsImageMSFT_WdsImage
VersionSoftwareLicensingServiceSoftwareLicensingService
VersionWin32_ClassicCOMClassSettingWin32_ClassicCOMClassSetting
VersionWin32_PrinterDriverWin32_PrinterDriver
VersionWin32_ProcessorWin32_Processor
VersionWin32_ShadowProviderWin32_ShadowProvider
VersionWin32_TSLicenseReportWin32_TSLicenseReport
VersionWin32_TSLicenseServerWin32_TSLicenseServer

List of classes with Version derived property in ROOT\CIMV2 namespace

propertyClassOrigin
VersionCIM_BIOSElementCIM_SoftwareElement
VersionCIM_BIOSFeatureCIM_SoftwareFeature
VersionCIM_CardCIM_PhysicalElement
VersionCIM_ChassisCIM_PhysicalElement
VersionCIM_ChipCIM_PhysicalElement
VersionCIM_CopyFileActionCIM_Action
VersionCIM_CreateDirectoryActionCIM_Action
VersionCIM_DirectoryActionCIM_Action
VersionCIM_DirectorySpecificationCIM_Check
VersionCIM_DiskSpaceCheckCIM_Check
VersionCIM_ExecuteProgramCIM_Action
VersionCIM_FileActionCIM_Action
VersionCIM_FileSpecificationCIM_Check
VersionCIM_MemoryCheckCIM_Check
VersionCIM_ModifySettingActionCIM_Action
VersionCIM_OSVersionCheckCIM_Check
VersionCIM_PhysicalComponentCIM_PhysicalElement
VersionCIM_PhysicalConnectorCIM_PhysicalElement
VersionCIM_PhysicalFrameCIM_PhysicalElement
VersionCIM_PhysicalLinkCIM_PhysicalElement
VersionCIM_PhysicalMediaCIM_PhysicalElement
VersionCIM_PhysicalMemoryCIM_PhysicalElement
VersionCIM_PhysicalPackageCIM_PhysicalElement
VersionCIM_RackCIM_PhysicalElement
VersionCIM_RebootActionCIM_Action
VersionCIM_RemoveDirectoryActionCIM_Action
VersionCIM_RemoveFileActionCIM_Action
VersionCIM_SettingCheckCIM_Check
VersionCIM_SlotCIM_PhysicalElement
VersionCIM_SoftwareElementVersionCheckCIM_Check
VersionCIM_SwapSpaceCheckCIM_Check
VersionCIM_VersionCompatibilityCheckCIM_Check
VersionCIM_VideoBIOSElementCIM_SoftwareElement
VersionCIM_VideoBIOSFeatureCIM_SoftwareFeature
VersionMSFT_WdsBootImageMSFT_WdsImage
VersionMSFT_WdsInstallImageMSFT_WdsImage
VersionWin32_BaseBoardCIM_PhysicalElement
VersionWin32_BindImageActionCIM_Action
VersionWin32_BIOSCIM_SoftwareElement
VersionWin32_ClassInfoActionCIM_Action
VersionWin32_CodecFileCIM_DataFile
VersionWin32_ComputerSystemProductCIM_Product
VersionWin32_ConditionCIM_Check
VersionWin32_CreateFolderActionCIM_Action
VersionWin32_DirectorySpecificationCIM_Check
VersionWin32_DuplicateFileActionCIM_Action
VersionWin32_EnvironmentSpecificationCIM_Check
VersionWin32_ExtensionInfoActionCIM_Action
VersionWin32_FileSpecificationCIM_Check
VersionWin32_FontInfoActionCIM_Action
VersionWin32_IniFileSpecificationCIM_Check
VersionWin32_LaunchConditionCIM_Check
VersionWin32_MIMEInfoActionCIM_Action
VersionWin32_MoveFileActionCIM_Action
VersionWin32_NTEventlogFileCIM_DataFile
VersionWin32_ODBCDataSourceSpecificationCIM_Check
VersionWin32_ODBCDriverSpecificationCIM_Check
VersionWin32_ODBCTranslatorSpecificationCIM_Check
VersionWin32_OnBoardDeviceCIM_PhysicalElement
VersionWin32_OperatingSystemCIM_OperatingSystem
VersionWin32_PageFileCIM_DataFile
VersionWin32_PhysicalMediaCIM_PhysicalElement
VersionWin32_PhysicalMemoryCIM_PhysicalElement
VersionWin32_PhysicalMemoryArrayCIM_PhysicalElement
VersionWin32_PortConnectorCIM_PhysicalElement
VersionWin32_ProductCIM_Product
VersionWin32_ProgIDSpecificationCIM_Check
VersionWin32_PublishComponentActionCIM_Action
VersionWin32_RegistryActionCIM_Action
VersionWin32_RemoveFileActionCIM_Action
VersionWin32_RemoveIniActionCIM_Action
VersionWin32_ReserveCostCIM_Check
VersionWin32_SelfRegModuleActionCIM_Action
VersionWin32_ServiceSpecificationCIM_Check
VersionWin32_ShortcutActionCIM_Action
VersionWin32_ShortcutFileCIM_DataFile
VersionWin32_SoftwareElementCIM_SoftwareElement
VersionWin32_SoftwareElementConditionCIM_Check
VersionWin32_SoftwareFeatureCIM_SoftwareFeature
VersionWin32_SystemEnclosureCIM_PhysicalElement
VersionWin32_SystemSlotCIM_PhysicalElement
VersionWin32_TypeLibraryActionCIM_Action

Code samples for Version property

Get instance of WMI class using GetObject, Version property of Win32_ShortcutFile

Short VBS code - get a single specified instance of Win32_ShortcutFile class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\cimv2:" + _
 "Win32_ShortcutFile.Name=""c:\\programdata\\microsoft\\windows\\start menu\\programs\\accessories\\calculator.lnk""")
Wscript.Echo wmiObject.Version 'or other property name, see properties
See more VBS samples of Win32_ShortcutFile class

WMI query - sample windows WQL with C#, Version property of Win32_ShortcutFile

Get a specified instance of Win32_ShortcutFile by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\cimv2");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_ShortcutFile Where Name=\"c:\\\\programdata\\\\microsoft\\\\windows\\\\start menu\\\\programs\\\\accessories\\\\calculator.lnk\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("Version : {0}", m["Version"]);
  
}

WMI query - sample windows WQL with VB.Net, Version property of Win32_ShortcutFile

Get a specified instance of Win32_ShortcutFile by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\cimv2")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Win32_ShortcutFile Where Name="c:\\programdata\\microsoft\\windows\\start menu\\programs\\accessories\\calculator.lnk"")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("Version : {0}", mObject("Version"))
Next
comments powered by Disqus
WUtils.com