View all properties of AD objects with PowerShell

View all properties of AD objects with PowerShell

Q. How can I view all properties of an AD object using PowerShell?

A. There are numerous PowerShell cmdlets however normally they only return certain properties. To return all properties use the -properties * parameter or change to return only certain properties. For example:

$user | Get-ADUser -properties *

$user | Get-ADUser -Properties name, sAMAccountName, PasswordLastSet

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish