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

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon