ColdFusion and WMI Query

Reply

Join Date: May 2008
Posts: 1
Reputation: lberezinski is an unknown quantity at this point 
Solved Threads: 0
lberezinski lberezinski is offline Offline
Newbie Poster

ColdFusion and WMI Query

 
0
  #1
May 29th, 2008
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

  1. <cfset obj_wmi = CreateObject( "component" , "wmi" ).init() />
  2. <cfset arr_Array = obj_wmi.execQuery ( " Win32_UserAccount " ) />

But what I need to do is similar to the non working code below

  1. <cfset obj_wmi = CreateObject( "component" , "wmi" ).init() />
  2. <cfset arr_Array = obj_wmi.execQuery ( " SELECT SID FROM Win32_UserAccount WHERE Name='UserName' AND Domain='DomainName' " ) />


Thanks in Advance
Last edited by peter_budo; May 31st, 2008 at 7:44 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ColdFusion Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC