Solved

PowerShells ability to Format Table in regards to rows of information

Posted on 2014-01-24
3
405 Views
Last Modified: 2014-01-24
So, I am running a Powershell command:
Get-ADGroup -filter * -Properties info | ? {$_.info -ne $null} | fl name, info

this gets me the:
1. name of AD groups
2. the Notes entered into AD (see attached file)

when you are in PS and you use FT -auto, it will give the information with columnwidth adjusted automatically.

If I run this command:
Get-ADGroup -filter * -Properties info | ? {$_.info -ne $null} | ft -auto name, info

I will only get the 1st row of data that is entered into the Notes section within AD.



Does anyone know how to either:
1. use FT to get all the rows to display
2. use any other powershell command to display the name of the group while displaying all rows in the Notes section   [but in a table format]

For example, the output would look like this (in comparison to the attached file):

Name                                         Info
A-team                                       Owner: Brian KT
                                                    Co-Owner: Rob N, Rod TA

B-team                                        Owner: Joe Snuffy
                                                    Co-Owner: JAne Doe
0
Comment
Question by:taartero
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:taartero
ID: 39807434
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39807461
Try with
Get-ADGroup -filter * -Properties info | ? {$_.info -ne $null} | FT Name,Info -Wrap

Open in new window

0
 

Author Closing Comment

by:taartero
ID: 39807468
Ace, did I ever tell you!..... You Rock!


Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
A hard and fast method for reducing Active Directory Administrators members.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question