title: Is there a way to filter out the objects with a blank name in the AD attribute 'ManagedBy'?
body: <p>I don't have enough reputation points (lurker here for years though, good stuff!) so I have to ask a new question rather than commenting on Apologician's original post.  Here is Apologician's code:</p>
  <pre><code>$test = 'OU=example,DC=example,DC=test'
  
  $test | ForEach {Get-ADGroup -Filter * -Properties ManagedBy -SearchBase $_ } |
   Select Name, ManagedBy |
   Sort -Property Name |
   Out-File C:\test.csv
  </code></pre>
  <p>I want to capture the names of objects with a blank ManagedBy field.  Thanks in advance.</p>