KACE Product Support Question

Meter asset using labels

01/28/2013 2274 views

Is it possible to assign labels to specific software metering jobs? I have some Windows computers that have stata installed with their own license, and other computers that are running stata from a share using a site license for concurrent use. I want to meter only the stata process on computers using the site license. I see that the global metering settings use labels, but not the individual metering jobs.


0 Comments   [ + ] Show comments


All Answers


You can create a custom inventory based on the running process.  I created one that looks for any process's that are running from the users appdata, you should be able to modify it to suite your needs.

ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (commandline like "%%AppDat%%") get commandline)

without testing should be for you

ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (commandline like "%%Stata%%") get name)

you can create a bat file and run on a machine with it running to test

c:\windows\system32\wbem\WMIC.exe PROCESS where (commandline like "%%Stata%%") get name.

Here is my custom inventory rule

Answered 01/28/2013 by: SMal.tmcc
Red Belt

  • I use this to look for malware and programs the user self installed.
    • command may even be like
      ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (name like "%strata.exe%") get name)
  • Thanks. Either I'm way lost on what you're saying, or I screwed up my original message, so just to be clear - I'm able to meter the process StataSE-64.exe whether it's being run from a local install or a share, but kbox can't tell me which one of those is happening on which PCs. So are saying I can create an inventory item that can determine that (ie, an inventory item that sees stata running but also sees that it isn't installed locally), then meter that inventory item?
    • if you use the name like "%%StataSE-64.exe%%" it will report on that exe running no matter from where.
      ShellCommandTextReturn(c:\windows\system32\wbem\WMIC.exe PROCESS where (name like "%stratase-64.exe%") get name)
      • if you change the get command from get name to get commandline it will tell you the full path the exe is running from.
  • If you use the "name" you will meter it running from any location. if you use "commandline" then you can get more granular to the exact location it is running from.
  • Ah, ok, sounds great. I'll try it out.

    • remember the machines will have to do a inventory after you create the custom item to get it to populate. To test your rule.
      Create rule
      force an inventory update on a machine running the exe and it should show under the item
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ