Subscribe to Windows IT Pro
September 07, 2010 12:01 AM

Q. Can I create custom table views in PowerShell?

Windows IT Pro
InstantDoc ID #125884
Rating: (0)

A. Yes, although it's complicated and not well-documented. You can find examples to copy and paste in PowerShell's installation folder. Within the shell, run

CD $pshome

and look for the ".format.ps1xml" files. Browse through one of those files in Notepad to find a TableControl to copy. Don't modify the Microsoft-provided files—doing so will invalidate them. After you've constructed your XML file, load it into the shell using the Update-FormatData cmdlet. Doing so only affects the current shell session, so you'll need to do that every time you open the shell. If it's something you want to use every time, put it in a profile script.

 

Do you have a Windows PowerShell question? Why not submit it to Don? Post your question at windowsitpro.com/go/SubmitFAQ and you might see your answer online! Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.