Hello,
How do I get the 2nd GET command to display the information on the screen.
I'm trying to accomplish displaying the AD group name, AD group Description, and group members.
The command displays the first two items. But it will not display the 3rd item. The weird part it puts the spaces in the display on the screen for the names.
get-content
c:\temp\adgroups.txt |Foreach-Object {
$_
get-adgroup-identity$_-propertiesdescription| selectdescription Get-ADGroupMember
-identity$_ | Get-ADUser -Property DisplayName |SelectDisplayName}