SoftwareElementState - property in ROOT\CIMV2 namespace

SoftwareElementState in other namespaces

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

propertyClassOrigin
SoftwareElementStateCIM_ActionCIM_Action
SoftwareElementStateCIM_CheckCIM_Check
SoftwareElementStateCIM_SoftwareElementCIM_SoftwareElement

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

propertyClassOrigin
SoftwareElementStateCIM_BIOSElementCIM_SoftwareElement
SoftwareElementStateCIM_CopyFileActionCIM_Action
SoftwareElementStateCIM_CreateDirectoryActionCIM_Action
SoftwareElementStateCIM_DirectoryActionCIM_Action
SoftwareElementStateCIM_DirectorySpecificationCIM_Check
SoftwareElementStateCIM_DiskSpaceCheckCIM_Check
SoftwareElementStateCIM_ExecuteProgramCIM_Action
SoftwareElementStateCIM_FileActionCIM_Action
SoftwareElementStateCIM_FileSpecificationCIM_Check
SoftwareElementStateCIM_MemoryCheckCIM_Check
SoftwareElementStateCIM_ModifySettingActionCIM_Action
SoftwareElementStateCIM_OSVersionCheckCIM_Check
SoftwareElementStateCIM_RebootActionCIM_Action
SoftwareElementStateCIM_RemoveDirectoryActionCIM_Action
SoftwareElementStateCIM_RemoveFileActionCIM_Action
SoftwareElementStateCIM_SettingCheckCIM_Check
SoftwareElementStateCIM_SoftwareElementVersionCheckCIM_Check
SoftwareElementStateCIM_SwapSpaceCheckCIM_Check
SoftwareElementStateCIM_VersionCompatibilityCheckCIM_Check
SoftwareElementStateCIM_VideoBIOSElementCIM_SoftwareElement
SoftwareElementStateWin32_BindImageActionCIM_Action
SoftwareElementStateWin32_BIOSCIM_SoftwareElement
SoftwareElementStateWin32_ClassInfoActionCIM_Action
SoftwareElementStateWin32_ConditionCIM_Check
SoftwareElementStateWin32_CreateFolderActionCIM_Action
SoftwareElementStateWin32_DirectorySpecificationCIM_Check
SoftwareElementStateWin32_DuplicateFileActionCIM_Action
SoftwareElementStateWin32_EnvironmentSpecificationCIM_Check
SoftwareElementStateWin32_ExtensionInfoActionCIM_Action
SoftwareElementStateWin32_FileSpecificationCIM_Check
SoftwareElementStateWin32_FontInfoActionCIM_Action
SoftwareElementStateWin32_IniFileSpecificationCIM_Check
SoftwareElementStateWin32_LaunchConditionCIM_Check
SoftwareElementStateWin32_MIMEInfoActionCIM_Action
SoftwareElementStateWin32_MoveFileActionCIM_Action
SoftwareElementStateWin32_ODBCDataSourceSpecificationCIM_Check
SoftwareElementStateWin32_ODBCDriverSpecificationCIM_Check
SoftwareElementStateWin32_ODBCTranslatorSpecificationCIM_Check
SoftwareElementStateWin32_ProgIDSpecificationCIM_Check
SoftwareElementStateWin32_PublishComponentActionCIM_Action
SoftwareElementStateWin32_RegistryActionCIM_Action
SoftwareElementStateWin32_RemoveFileActionCIM_Action
SoftwareElementStateWin32_RemoveIniActionCIM_Action
SoftwareElementStateWin32_ReserveCostCIM_Check
SoftwareElementStateWin32_SelfRegModuleActionCIM_Action
SoftwareElementStateWin32_ServiceSpecificationCIM_Check
SoftwareElementStateWin32_ShortcutActionCIM_Action
SoftwareElementStateWin32_SoftwareElementCIM_SoftwareElement
SoftwareElementStateWin32_SoftwareElementConditionCIM_Check
SoftwareElementStateWin32_TypeLibraryActionCIM_Action

Code samples for SoftwareElementState property

Get instance of WMI class using GetObject, SoftwareElementState property of Win32_EnvironmentSpecification

Short VBS code - get a single specified instance of Win32_EnvironmentSpecification 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_EnvironmentSpecification.CheckID=""Env_OANOCACHE_ONE_3{D64B6984-242F-32BC-B008-752806E5FC44}""")
Wscript.Echo wmiObject.SoftwareElementState 'or other property name, see properties
See more VBS samples of Win32_EnvironmentSpecification class

WMI query - sample windows WQL with C#, SoftwareElementState property of Win32_EnvironmentSpecification

Get a specified instance of Win32_EnvironmentSpecification 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_EnvironmentSpecification Where CheckID=\"Env_OANOCACHE_ONE_3{D64B6984-242F-32BC-B008-752806E5FC44}\"");

//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("SoftwareElementState : {0}", m["SoftwareElementState"]);
  
}

WMI query - sample windows WQL with VB.Net, SoftwareElementState property of Win32_EnvironmentSpecification

Get a specified instance of Win32_EnvironmentSpecification 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_EnvironmentSpecification Where CheckID="Env_OANOCACHE_ONE_3{D64B6984-242F-32BC-B008-752806E5FC44}"")

'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("SoftwareElementState : {0}", mObject("SoftwareElementState"))
Next
comments powered by Disqus
WUtils.com