Hi all
I’m new to ColdFusion and I have hard time to understand how to run a specific WMI query
Until now I can only dump a WMI Class to a ColdFusion Array
For example
<cfset obj_wmi = CreateObject( "component" , "wmi" ).init() />
<cfset arr_Array = obj_wmi.execQuery ( " Win32_UserAccount " ) />
But what I need to do is similar to the non working code below
<cfset obj_wmi = CreateObject( "component" , "wmi" ).init() />
<cfset arr_Array = obj_wmi.execQuery ( " SELECT SID FROM Win32_UserAccount WHERE Name='UserName' AND Domain='DomainName' " ) />
Thanks in Advance