title: Compare two list and find names that are in list one and not list two using powershell
body: <p>Just wondering if you can help me out.. I am trying to compare two list(txt file) and find strings that are in list A and not in List B and output it to another txt file.. anybody know how to do it using powershell ?</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>Compare-Object -ReferenceObject $FolderLists -DifferenceObject $AdUserName -passThru
  </code></pre>
  
  <p>I would like to find all strings that are in $FolderLists and not $AdUserName and possibly output it to another variable. The issue I am having is that it outputs strings that are not in both lists.</p>