Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

2nd GET command not displaying information.

$
0
0

 

 

 

 

 

 

 

 

 

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}

Viewing all articles
Browse latest Browse all 6937

Trending Articles