Dynamic WMI Query

Forums Desktop Info Dynamic WMI Query

This topic contains 1 reply, has 2 voices, and was last updated by Glenn Glenn 2 months, 2 weeks ago.

  • Author
    Posts
  • #1454 Reply
    Avatar
    Matthew

    I am trying a WMI query with a where clause that I want to contain a variable.

    Example:
    USER=active:9,interval:0,set:username
    WMI=active:1,interval:1,text:,namespace:root\cimv2,query:Win32_NetworkLoginProfile where Caption like “%username%”,display:%Caption% %LastLogon%

    If I change the “%username%” to “matth” or “%matth%” the query will work. This requires hard coding the username into the query while I would like this query to use the username variable defined in the previous line.

    Is this possible with Desktop Info?

    0
  • #1456 Reply
    Glenn
    Glenn
    Keymaster

    I think that’s do-able. I’ll raise an issue and look into it.

    0
Reply To: Dynamic WMI Query
Your information:




Cancel
Do NOT follow this link or you will be banned from the site!