title: Powershell filtering an output file
body: <p>I am looking for all users on AD who are not in a group "all users" the output file shows all the fields I would like it to be just the Name field.</p>
  
  <p>The script is:</p>
  
  <pre><code>Get-ADUser -Filter * -properties memberof | Where-Object {!($
  _.memberof -like "*all email*")} | out-file c:\users\worta\desktop\users.csv
  </code></pre>
  
  <p>It shows in the txt file as</p>
  
  <pre><code>`DistinguishedName : CN=Administrator,CN=Users,DC=Inside,DC=John-Henderson,DC=co
                      ,DC=uk
  Enabled           : True
  GivenName         : 
  MemberOf          : {CN=Fax Users,CN=Users,DC=Inside,DC=John-Henderson,DC=co,DC
                      =uk, CN=Organization Management,OU=Microsoft Exchange Secur
                      ity Groups,DC=Inside,DC=John-Henderson,DC=co,DC=uk, CN=HFS 
                      Terminal Services,CN=Users,DC=Inside,DC=John-Henderson,DC=c
                      o,DC=uk, CN=Internet Users,CN=Users,DC=Inside,DC=John-Hende
                      rson,DC=co,DC=uk...}
  **Name              : Administrator**
  ObjectClass       : user
  ObjectGUID        : 840790d7-fe4e-46ea-9781-e64269543ce8
  SamAccountName    : Administrator
  SID               : S-1-5-21-2809677999-1344825738-4163663879-500
  Surname           : 
  UserPrincipalName : administrator@Inside.John-Henderson.co.uk
  </code></pre>
  
  <p>`
  I would like just an output of the field Name highlighted</p>
  
  <p>Thank you for your help.</p>