Solved

PowerShells ability to Format Table in regards to rows of information

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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

756 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