When I paste this code into a custom web report I get the following:
Also this just seems to show computers that have the same name. In my situation the computers would have the same serial number but different names (computer got reimaged and moved somewhere else).
Edit: I’m an idiot. I forgot to surround the relevance by <?Relevance ?>. This works and displays duplicate computers by name. I was able to find duplicate computers by serial number here which should work for my purposes:
https://bigfix.me/relevance/details/2998823
As always thanks for the insight.