SID - property in ROOT\WMI namespace

SID in other namespaces

List of classes with SID local property in ROOT\WMI namespace

propertyClassOrigin
SID__Trustee__Trustee
SIDSamAddMemGrp_StartSamAddMemGrp_Start
SIDSamAddMemToAlias_StartSamAddMemToAlias_Start
SIDSamChangePwdComputer_StartSamChangePwdComputer_Start
SIDSamCloseHandle_StartSamCloseHandle_Start
SIDSamCompCreate_StartSamCompCreate_Start
SIDSamCompPwdSet_StartSamCompPwdSet_Start
SIDSamConnect_StartSamConnect_Start
SIDSamCreateAliasInDom_StartSamCreateAliasInDom_Start
SIDSamDeleteAlias_StartSamDeleteAlias_Start
SIDSamDeleteGrp_StartSamDeleteGrp_Start
SIDSamDeleteUser_StartSamDeleteUser_Start
SIDSamDelMemGrp_StartSamDelMemGrp_Start
SIDSamEnumAliasesInDom_StartSamEnumAliasesInDom_Start
SIDSamEnumDomInSamSrv_StartSamEnumDomInSamSrv_Start
SIDSamEnumGrpsInDom_StartSamEnumGrpsInDom_Start
SIDSamEnumUsersInDom_StartSamEnumUsersInDom_Start
SIDSamGetAliasMem_StartSamGetAliasMem_Start
SIDSamGetBootKeyInfo_StartSamGetBootKeyInfo_Start
SIDSamGetDisplayEnumIdx_StartSamGetDisplayEnumIdx_Start
SIDSamGetDomPwdInfo_StartSamGetDomPwdInfo_Start
SIDSamGetGrpsForUser_StartSamGetGrpsForUser_Start
SIDSamGetMemInAlias_StartSamGetMemInAlias_Start
SIDSamGetMemInGrp_StartSamGetMemInGrp_Start
SIDSamGetUserDomPwdInfo_StartSamGetUserDomPwdInfo_Start
SIDSamGrpCreate_StartSamGrpCreate_Start
SIDSamIdByName_StartSamIdByName_Start
SIDSamLookupDomInSamSrv_StartSamLookupDomInSamSrv_Start
SIDSamNameById_StartSamNameById_Start
SIDSamOpenAlias_StartSamOpenAlias_Start
SIDSamOpenDomain_StartSamOpenDomain_Start
SIDSamOpenGrp_StartSamOpenGrp_Start
SIDSamOpenUser_StartSamOpenUser_Start
SIDSamProcessMappedAttributes_StartSamProcessMappedAttributes_Start
SIDSamPwdChng_StartSamPwdChng_Start
SIDSamPwdPushPdc_StartSamPwdPushPdc_Start
SIDSamQueryDisplayInfo_StartSamQueryDisplayInfo_Start
SIDSamQueryInfoAlias_StartSamQueryInfoAlias_Start
SIDSamQueryInfoDom_StartSamQueryInfoDom_Start
SIDSamQueryInfoGrp_StartSamQueryInfoGrp_Start
SIDSamQueryInfoUser_StartSamQueryInfoUser_Start
SIDSamQuerySecurityObj_StartSamQuerySecurityObj_Start
SIDSamRemoveMemFromAlias_StartSamRemoveMemFromAlias_Start
SIDSamRemoveMemFromForeignDom_StartSamRemoveMemFromForeignDom_Start
SIDSamSetBootKeyInfo_StartSamSetBootKeyInfo_Start
SIDSamSetInfoAlias_StartSamSetInfoAlias_Start
SIDSamSetInfoDom_StartSamSetInfoDom_Start
SIDSamSetInfoGrp_StartSamSetInfoGrp_Start
SIDSamSetInfoUser_StartSamSetInfoUser_Start
SIDSamSetMemAttrsOfGrp_StartSamSetMemAttrsOfGrp_Start
SIDSamSetSecurityObj_StartSamSetSecurityObj_Start
SIDSamShutdownSamSrv_StartSamShutdownSamSrv_Start
SIDSamUserCreate_StartSamUserCreate_Start
SIDSamUserPwdSet_StartSamUserPwdSet_Start

Code samples for SID property

Get instance of WMI class using GetObject, SID property of SamEnumAliasesInDom_Start

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

WMI query - sample windows WQL with C#, SID property of SamEnumAliasesInDom_Start

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

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM SamEnumAliasesInDom_Start Where PropertyName=\"SomeText\"");

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

WMI query - sample windows WQL with VB.Net, SID property of SamEnumAliasesInDom_Start

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

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM SamEnumAliasesInDom_Start Where PropertyName="SomeText"")

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