SoftwareElementID - property in ROOT\CIMV2\ms_409 namespace

SoftwareElementID in other namespaces

List of classes with SoftwareElementID local property in ROOT\CIMV2\ms_409 namespace

propertyClassOrigin
SoftwareElementIDCIM_ActionCIM_Action
SoftwareElementIDCIM_CheckCIM_Check
SoftwareElementIDCIM_SoftwareElementCIM_SoftwareElement

List of classes with SoftwareElementID derived property in ROOT\CIMV2\ms_409 namespace

propertyClassOrigin
SoftwareElementIDCIM_BIOSElementCIM_SoftwareElement
SoftwareElementIDCIM_CopyFileActionCIM_Action
SoftwareElementIDCIM_CreateDirectoryActionCIM_Action
SoftwareElementIDCIM_DirectoryActionCIM_Action
SoftwareElementIDCIM_DirectorySpecificationCIM_Check
SoftwareElementIDCIM_DiskSpaceCheckCIM_Check
SoftwareElementIDCIM_ExecuteProgramCIM_Action
SoftwareElementIDCIM_FileActionCIM_Action
SoftwareElementIDCIM_FileSpecificationCIM_Check
SoftwareElementIDCIM_MemoryCheckCIM_Check
SoftwareElementIDCIM_ModifySettingActionCIM_Action
SoftwareElementIDCIM_OSVersionCheckCIM_Check
SoftwareElementIDCIM_RebootActionCIM_Action
SoftwareElementIDCIM_RemoveDirectoryActionCIM_Action
SoftwareElementIDCIM_RemoveFileActionCIM_Action
SoftwareElementIDCIM_SettingCheckCIM_Check
SoftwareElementIDCIM_SoftwareElementVersionCheckCIM_Check
SoftwareElementIDCIM_SwapSpaceCheckCIM_Check
SoftwareElementIDCIM_VersionCompatibilityCheckCIM_Check
SoftwareElementIDCIM_VideoBIOSElementCIM_SoftwareElement
SoftwareElementIDWin32_BindImageActionCIM_Action
SoftwareElementIDWin32_BIOSCIM_SoftwareElement
SoftwareElementIDWin32_ClassInfoActionCIM_Action
SoftwareElementIDWin32_ConditionCIM_Check
SoftwareElementIDWin32_CreateFolderActionCIM_Action
SoftwareElementIDWin32_DirectorySpecificationCIM_Check
SoftwareElementIDWin32_DuplicateFileActionCIM_Action
SoftwareElementIDWin32_EnvironmentSpecificationCIM_Check
SoftwareElementIDWin32_ExtensionInfoActionCIM_Action
SoftwareElementIDWin32_FileSpecificationCIM_Check
SoftwareElementIDWin32_FontInfoActionCIM_Action
SoftwareElementIDWin32_IniFileSpecificationCIM_Check
SoftwareElementIDWin32_LaunchConditionCIM_Check
SoftwareElementIDWin32_MIMEInfoActionCIM_Action
SoftwareElementIDWin32_MoveFileActionCIM_Action
SoftwareElementIDWin32_ODBCDataSourceSpecificationCIM_Check
SoftwareElementIDWin32_ODBCDriverSpecificationCIM_Check
SoftwareElementIDWin32_ODBCTranslatorSpecificationCIM_Check
SoftwareElementIDWin32_ProgIDSpecificationCIM_Check
SoftwareElementIDWin32_PublishComponentActionCIM_Action
SoftwareElementIDWin32_RegistryActionCIM_Action
SoftwareElementIDWin32_RemoveFileActionCIM_Action
SoftwareElementIDWin32_RemoveIniActionCIM_Action
SoftwareElementIDWin32_ReserveCostCIM_Check
SoftwareElementIDWin32_SelfRegModuleActionCIM_Action
SoftwareElementIDWin32_ServiceSpecificationCIM_Check
SoftwareElementIDWin32_ShortcutActionCIM_Action
SoftwareElementIDWin32_SoftwareElementCIM_SoftwareElement
SoftwareElementIDWin32_SoftwareElementConditionCIM_Check
SoftwareElementIDWin32_TypeLibraryActionCIM_Action

Code samples for SoftwareElementID property

Get instance of WMI class using GetObject, SoftwareElementID property of Win32_RegistryAction

Short VBS code - get a single specified instance of Win32_RegistryAction 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\ms_409:" + _
 "Win32_RegistryAction.ActionID=""Value""")
Wscript.Echo wmiObject.SoftwareElementID 'or other property name, see properties
See more VBS samples of Win32_RegistryAction class

WMI query - sample windows WQL with C#, SoftwareElementID property of Win32_RegistryAction

Get a specified instance of Win32_RegistryAction 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\\ms_409");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_RegistryAction");

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

WMI query - sample windows WQL with VB.Net, SoftwareElementID property of Win32_RegistryAction

Get a specified instance of Win32_RegistryAction 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\ms_409")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Win32_RegistryAction")

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