For the machines that are getting populated into your new collection but already have Lync installed, take a look at them with Resource Explorer.
I have a feeling that you'll notice they are 64-bit operating systems, and that Lync doesn't show up in SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName for them since Lync is a native 64-bit app on those systems.
You'll want to add a second subselect query that includes the 64-bit table (basically 'where name not in 32-Bit AND not in 64-bit').
I hope that helps,
Nash
Nash Pherson, Senior Systems Consultant
Now Micro - My Blog Posts
<-- If this post was helpful, please click "Vote as Helpful".
The installed software view has both x86 and x64 in it.
However I use third party for this type of stuff.
John Marcum | http://myitforum.com/myitforumwp/author/johnmarcum/