To display the members of a group in Active Directory with their full name in a single line, you can use the following PowerShell command:

Powershell
Get-ADGroupMember "Group Name" | ForEach-Object {Get-ADUser $_.samaccountname -Properties DisplayName | Select-Object -ExpandProperty DisplayName} | Out-String -Width 4096

Replace “Group Name” with the name of the group you want to display the members for. The command will return the full name of each member in the group, separated by a new line character.

The Out-String -Width 4096 part of the command ensures that the output is displayed in a single line by setting the output width to 4096 characters.