When I run:
get-adgroup -filter {displayname -eq 'groupname'} | get-adgroupmember | format-table name, surname, givenname, officephone
The only field that returns is a default property "name". The rest show blank.
When I run:
get-adgroup -filter {displayname -eq 'groupname'} | get-adgroupmember | format-table name, surname, givenname, officephone
The only field that returns is a default property "name". The rest show blank.
If you really like one-liners:
If you want to manipulate the User objects further, you might want to store them in an array:
There is a
Properties
parameter you can specify to retrieve extended properties. Here's some examples from the TechNet documentation:If you don't mind I would recommend you a tool.
...
I am using 'AD-Info' from 'Cjwdev Software' to pull out Information from Active Directory. In my case the Standard Edition is actively being used to analyze the AD and generating customized reports. In your case the free version should probably do it already.
If you run
You'll see that there aren't a lot of fields/properties available in the first place; the ones you want aren't there.
So, you can't do what you want with the tool you're using. You could probably pass the SID or the DN to another tool.