This is the path I'm trying to exclude
C:\WINDOWS\Installer\$PatchCache$\Managed\00002109A30000000000000000F01FEC\12.0.4518\
This is my query statement
select SMS_R_System.NetbiosName, SMS_R_System.LastLogonUserName,
SMS_G_System_SoftwareFile.FileName, SMS_G_System_SoftwareFile.FileVersion,
SMS_G_System_SoftwareFile.FilePath 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 =
"winproj.exe" and SMS_G_System_SoftwareFile.FilePath not like
"C:\\WINDOWS\\Installer\\$PatchCache$\\Managed\\00002109A30000000000000000F01FEC\\12.0.4518\\" order by SMS_G_System_SoftwareFile.FilePath