Solved

PowerShells ability to Format Table in regards to rows of information

Posted on 2014-01-24
3
399 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
  • 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
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 …

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now