Home » PowerShell » Get AdUser All Properties in PowerShell

Get AdUser All Properties in PowerShell

Use the Get-AdUser cmdlet in PowerShell to get all properties of an active directory user. The Get-AdUser has a parameter Properties to specify the properties of the aduser object to retrieve from the Active Directory.

Use the Get-AdUser cmdlet with Properties * (asterisk) to display all attributes that are available for the object. To get specific properties for an ad user account, you can specify properties for this parameter with comma separated.

In this example, we will discuss how to get aduser all properties in PowerShell using the Get-AdUser command example.

Get-AdUser All Properties in PowerShell

You can get all of the properties for an active directory using the Get-AdUser cmdlet. Refer to the below code to display all attributes for a specified user.

Get-ADUser -Identity Toms -Properties *

In the above PowerShell script, the Get-AdUser cmdlet uses the Identity parameter to specify an aduser and the Properties * parameter to get all of the properties for the aduser.

The output of the above PowerShell script displays all of the properties for a specified user.

Get Aduser all properties
Get Aduser all properties

Conclusion

I hope the above article on how to get aduser all properties in PowerShell using the Get-AdUser cmdlet is helpful to you.

You can retrieve specific properties specifying the properties as comma-separated. Use the Get-Member cmdlet to get members, properties, and methods available for an aduser object.

You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.

Leave a Comment