GettingStarted
GettingStarted

Reputation: 7625

How do I get the Title for a person?

Get-ADGroupMember -Identity "GroupName" | Select Name,SamAccountName,DistinguishedName,Title

I get everything except the job title of the person. I'd also like to get the description.

Upvotes: 1

Views: 1152

Answers (1)

Conan1989
Conan1989

Reputation: 328

Pretty much what the guy above said, but a different method.

Basically the command has a set of default properties that it pulls, anything beyond that you have to specify

Import-Module -Name "ActiveDirectory"    
Get-ADGroupMember -Identity "GroupName" | Get-ADUser -Properties "Title" | Select-Object -Property ("Name", "Title")

Upvotes: 3

Related Questions