I want to get all user/groups which are member of a group sort by name. I can do this using following code:
Get-ADGroupMember ADGroup -Recursive | sort name | ft Name
I get something like this:
Smith, Michael
McCanning, Peter
Obama, Glen
Griffin, Kate
But I want to get this:
Smith, Michael;
McCanning, Peter;
Obama, Glen;
Griffin, Kate;
How can I achieve this goal?