Scripting Question

Can kace find where the software is installed?

12/16/2016 1711 views
Is there a way to pull a report of which directory the software is installed under? For example, we have salesforce for outlook add-on which I can search for under software and know who has it installed but I would like to pull a report of the location of this software for each user. The reason behind this is, we have some users who installed this software add-on as "Just Me" and some installed as "Everyone" option on the computer which changes the directory location. For users who installed the software as "Just Me" software gets installed under Userprofile\Appdata\Local where as who choose "Everyone" it gets installed under C:\Program Files (x86) folder.

1 Comment   [ + ] Show comment


  • Short answer , No.

    That is something you may have to research and see if it can be done with a script or something that outputs to a text file and the use Custom Inventory Rules (CIR) to read that file and bring that information into the KBOX.

    Once there you can then report on it.

    If you know the flag in the registry that says for everyone or just for me then you can again use CIR to look at that key and bring that data back.

Community Chosen Answer


Create a CIR using wmic.  I do not know the real name of the process for sales force so you will need to open task manager and look that up.

ShellCommandTextReturn(cmd /c wmic process where name="salesforce.exe" get command)

the registry key to tell you this would be found under:

here if a user installed it
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Software Name\InstallLocation

here if the system install it
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Software Name\InstallLocation

Answered 12/20/2016 by: SMal.tmcc
Red Belt

All Answers

You can create a script that verifies a file exists in a directory. You already know which machines have the add-on installed so now just create a script to those machines. 
    1. First task - Choose "verify a file exists..."
    2. Directory: - C:\Program Files (x86)\
    3. File: - salesforce(one of the file names associated with the add-on)
If the file exists, then you know which machines have it in the Program Files directory. If the file does not exist then the add-on must be installed in the AppData directory.
Answered 12/21/2016 by: gkiedrowski
Yellow Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


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