title: Export all attributes and values of a user in Active Directory
body: <p>In "Active Directory Users and Computers" on Windows I have the ability to view a list of all attributes and their values.</p>
  
  <p>I need to somehow export this list of values so that I have one column with the attribute name and one column with the value, just like in the picture.</p>
  
  <p><a href="https://i.stack.imgur.com/VLgc0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VLgc0.png" alt="enter image description here"></a></p>
  
  <p>I tried to do this with PowerShell</p>
  
  <pre><code>Get-ADUser smith -Properties * -value | Get-Member -MemberType property | Out-File "filename.csv"
  </code></pre>
  
  <p>But this just gives me a list of the attribute name, not the values.</p>
  
  <p>How can I export everything in the attribute editor to a file with PowerShell?</p>