October 31st, 2012

PowerTip: Use PowerShell Get-Member to See Properties of Active Directory Users

Doctor Scripto
Scripter

Summary: Learn how to use the Windows PowerShell Get-Member cmdlet to see all the properties of an Active Directory user account.

Hey, Scripting Guy! Question How can you use the Get-Member cmdlet to see all of the properties of a user account in Active Directory?

        Hey, Scripting Guy! Answer Use the Get-ADUser cmdlet from the ActiveDirectory module, and use a wildcard for the value of the Properties parameter. Pipe the result to the Get-Member cmdlet.

                          Get-ADUser -Filter * -Properties * | Get-Member -MemberType property

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.