Jump to content


  • 0
pvr02

Software Inventory Report for 2 files

Question

I have a report that currently shows the ComputerName, FileName, and FileVersion of an exe. I would like to add a 4th column to this report that shows the FileModifiedDate of a file called update.txt (not the abc.exe) that's on that same pc. The original code is below:

SELECT DISTINCT Sys.Name0,SF.FileName,SF.FileVersion
 from v_R_System Sys INNER JOIN 

v_GS_SoftwareFile SF on
 Sys.ResourceID = SF.ResourceID
 INNER JOIN v_FullCollectionMembership FCM on
 FCM.ResourceID=sys.ResourceID
where SF.FileName like 'abc.exe' 
 Order by SF.FileVersion,Sys.Name0,SF.FileName

Current Report:

PC Name File Name File Version

PC01 abc.exe 15.0

PC02 abc.exe 15.1

 

What I'd like:

PC Name File Name File Version File Modified Date of Update.txt

PC01 abc.exe 15.0 2/6/2016

PC02 abc.exe 15.1 4/6/2016

 

Can anyone provide some help or tips for accomplishing this?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.