Solved

PowerShells ability to Format Table in regards to rows of information

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
Synchronize a new Active Directory domain with an existing Office 365 tenant
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 transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

948 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

20 Experts available now in Live!

Get 1:1 Help Now