Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PowerShells ability to Format Table in regards to rows of information

Posted on 2014-01-24
3
Medium Priority
?
408 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Screencast - Getting to Know the Pipeline

972 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