[Last Call] Learn how to a build a cloud-first strategyRegister Now


Can Sccm tell me how many computers have a specific folder in program files?

Posted on 2009-12-28
Medium Priority
Last Modified: 2013-11-21
I am trying to find, or build a report or query that can tell me if a specific folder is found any of the computers in my managed network?  
Question by:wingsr4birds
LVL 29

Expert Comment

ID: 26138279
If it contains an executable than yes (by default) you can also do unknown extensions as well http://technet.microsoft.com/en-us/library/bb632607.aspx but note that your database may grow substantially if it's a very common extension, i.e. .doc for example and may take longer for the inventory to run.

Depending on what you're trying to achieve I'd just use a script to pull the information either via SCCM or a Logon Script.


Author Comment

ID: 26138801
The issue is we have Symantec Endpoint Installed, for some reason a certain percentage of the installations utilize a different file structure (even though they are the same versioni of the client) I believe these clients where upgraded from an older version of Endpoint. These clients all have some issues and i would like to run a report to find out how many of these "upgraded" clients are out there. In short the executiable is located in a different folder on these  clients.

Accepted Solution

CitySec earned 2000 total points
ID: 26139584
If the executable that is located in the "different" folder is known, then this might get you going in the right direction...

1.  Create a report.
2.  Name it what you'd like (e.g. Computers with a Specific File and Path)
3.  Set Category to Software - Files
4.  Use the SQL Statement labeled [Report SQL Statement--see code]
5.  Click the Prompts button and create 2 prompts.
5a.  Name = fileName, Prompt Text = File Name, SQL = [fileName SQL--see code]
5b.  Name = filePath, Prompt Text = File Path, SQL = [filePath SQL--see code]

This should atleast get you going in the right direction.  You might have to tweak it a little bit to suite your environment/situation but assuming you have Software Metering on and running, this should get you going.

[Report SQL Statement]
SELECT SYS.Netbios_Name0, SF.FileName, SF.FileDescription, SF.FileVersion, SF.FileSize, SF.FileModifiedDate, SF.FilePath
FROM v_GS_SoftwareFile SF
JOIN v_R_System SYS on SYS.ResourceID = SF.ResourceID
WHERE SF.FileName LIKE @fileName AND SF.FilePath LIKE @filePath
ORDER BY SYS.Netbios_Name0

[fileName SQL]
 if (@__filterwildcard = '')
  select distinct FileName from v_SoftwareFile order by FileName
  select distinct FileName from v_SoftwareFile
  WHERE FileName like @__filterwildcard
  order by FileName

[filePath SQL]
 if (@__filterwildcard = '')
  select distinct FilePath from v_GS_SoftwareFile order by FilePath
  select distinct FilePath from v_GS_SoftwareFile
  WHERE FilePath like @__filterwildcard
  order by FilePath

Open in new window


Expert Comment

ID: 36057281
Really Thanks

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Remote Desktop Protocol or RDP has become an essential tool in many offices. This article will show you how to set up an external IP to point directly to an RDP session. There are many reasons why this is beneficial but perhaps the top reason is con…
On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question