| | |
ColdFusion and WMI Query
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2008
Posts: 1
Reputation:
Solved Threads: 0
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
But what I need to do is similar to the non working code below
Thanks in Advance
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
coldfusion Syntax (Toggle Plain Text)
<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
ColdFusion Syntax (Toggle Plain Text)
<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
Last edited by peter_budo; May 31st, 2008 at 7:44 am. Reason: Keep It Organized - please use [code] tags
![]() |
Other Threads in the ColdFusion Forum
- Previous Thread: Query Time
- Next Thread: Creating a system to generate website statistics using CF?
| Thread Tools | Search this Thread |





