dj3094 Posted July 27, 2018 Report post Posted July 27, 2018 Hello all, I am trying to get a report of workstations that have a shortcut on desktop. select SMS_R_System.NetbiosName, SMS_R_System.LastLogonUserName, SMS_G_System_SoftwareFile.FileName from SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName like "foo.lnk" and SMS_G_System_SoftwareFile.FilePath like "C:\\Users\\Public\\Desktop\\" I could not make it work as this program is installed on the machine. its just a link to web portal Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted July 27, 2018 Report post Posted July 27, 2018 Have you enabled software inventory Is software inventory Inventoring .lnk files? Is there a reason you aren't just using a configuration baseline? it is easier to do this. 1 Quote Share this post Link to post Share on other sites More sharing options...
keilamym Posted July 27, 2018 Report post Posted July 27, 2018 FYI when using the LIKE command, you need to add the % variable. Here are a couple examples SMS_G_System_SoftwareFile.FileName like "%foo.lnk"- will show all files with foo.lnk SMS_G_System_SoftwareFile.FileName like "%.lnk" - will show all files with .lnk you get the idea Quote Share this post Link to post Share on other sites More sharing options...
Mace Posted July 31, 2018 Report post Posted July 31, 2018 I agree with Garth A CI and a baseline is the simplest method to get this data. Quote Share this post Link to post Share on other sites More sharing options...