AnsweredAssumed Answered

Windows Agent Scan Paths

Question asked by jharrison Advocate on Oct 13, 2017
Latest reply on Oct 13, 2017 by marc.farmen

Hi all,

 

I'm a little stumped on what locations the Windows agent actually scans. Here is our configuration (which is pretty much out of the box I believe):

 

<Software>
    <Include>
        <Path recursive="1">C:\Users\*\Microsoft\Windows\Start Menu\Programs\*</Path>
        <Path recursive="1">C:\Users\*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\*</Path>
        <Path recursive="1">C:\ProgramData\Microsoft\Windows\Start Menu\*</Path>
        <Path recursive="1">%temp%\*</Path>
        <Path recursive="1">%ProgramFiles%\*</Path>
        <Path recursive="1">%ProgramFiles(x86)%\*</Path>
    </Include>

    <Exclude>
        <Path>%windir%\*</Path>
        <Path>%\Program Files\Microsoft DPM\DPM\*</Path>
        <Path>%\Program Files\Microsoft System Center 2012\DPM\*</Path>
        <Path>%\Program Files\Microsoft System Center 2012 R2\DPM\*</Path>
    </Exclude>
    <IncludeCriteria>
        <FileType>exe</FileType>
        <FileType>wfd</FileType>
        <FileType>wfi</FileType>
        <FileType>wtd</FileType>
        <FileType>wti</FileType>
        <FileType>sys2</FileType>
        <FileType>lnk</FileType>
    </IncludeCriteria>
</Software>

 

From what I understand, this example file should be collected by the scan:

C:\Users\jharrison\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk

 

But it is not picked up in the scan. Looking at the SMACC on the Inventory Server, and listing the software on my computer, it does not find this file. Note:

  1. The file is in a folder which matches one of the include patterns in the XML (in red above)
  2. The file is of type 'lnk' which matches one of the include file types in the XML (in red above)

 

So why would it not find the file? What's additionally puzzling is it does find this file:

C:\Users\jharrison\AppData\Local\admin\admin.exe

 

So I have two questions:

  1. Does the agent scan locations other than those defined in the config file?
  2. Why would it not find files that it should such as in the above example?

 

Anyone else had similar issues?

 

Kind regards

Jordan

Outcomes