/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Search for software not listed in control panel

02/07/2014 1143 views

Hey,

Our company has software "abc" that resides on each user's profile "C:\Users\username\AppData\Local\abc\Profiles\abc.exe".

If I search for abc.exe in K1000 under software, I don't get true results. I know this because I have spot checked a couple of computers I know have the software installed but do not come up in results.  How can I search for this software? 

 

Please note- the software does not show in control panel as installed.  Nor does it show in program files folder. 

 

Answer Summary:
3 Comments   [ + ] Show comments

Comments

  • is it running or are you just looking for the file?
  • Thanks for the reply. No, its not running.
    • give me a few, you can use wmic datafile to look for a certain file on a drive. Have answered this once before for a file extension, same type of query.
  • Thanks alot. This is exactly what I was looking for


Community Chosen Answer

2

will be from the command line:

wmic datafile where "filename='abc' and extension='exe' and path like '\\users\\%' get name

I believe to run this as a ShellCommandTextReturn the asci charters are a little different, so will post that pic when I have it.

Answered 02/07/2014 by: SMal.tmcc
Red Belt

All Answers

1

You could use a custom inventory rule but since the .exe is located in the user's profile it is a unique location for each install. If there anything in the registry you could point to?

Answered 02/07/2014 by: jegolf
Red Belt

  • ...could you manually move the install directory to a location all user's can access? I did that with Dropbox, for example. By default it installs in the logged in user's profile but I copy that folder, save it on a share, and when user needs it installed I have a script that copies it into the Program Files folder, creates a shortcut for all users on the public desktop and Start Menu. You can then create a custom inventory rule using something like:

    FileExists(path)
This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.
0

found the custom rule I answered before, so I will create and post a wmic query shortly

http://www.itninja.com/question/monitoring-a-specific-directory-for-files-using-a-wild-card

Answered 02/07/2014 by: SMal.tmcc
Red Belt

  • Thanks. exactly what I was looking for.
0

as a custom inventory item use this:

ShellCommandTextReturn(cmd /c c:\windows\system32\wbem\WMIC.exe datafile where (filename="abc" and extension="exe" and path like "\\users\\%") get name)

you will see this under the computer and can then create labels and reports against it

Answered 02/07/2014 by: SMal.tmcc
Red Belt

 
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