New Skills

New Training: Configure Custom Formatting for PowerShell Objects

by Team Nuggets
New Training: Integrate Amazon Polly Voiceovers to Your Business Applications with Python picture: A
Published on March 9, 2021

In this 6-video skill, CBT Nuggets trainer Trevor Sullivan covers the world of PowerShell object formatting. Learn how to create format data, how to configure list and table output, and how to include format data in your own custom PowerShell module. Watch this new Programming and Development training.

Watch the full course: Advanced PowerShell Automation

This training includes:

  • 6 videos

  • 1.2 hours of training

You’ll learn these topics in this skill:

  • Why is PowerShell Object Formatting Important?

  • Constructing a PowerShell Formatting File

  • Colorizing Output with PowerShell Format Data

  • Including PowerShell Format Types in Modules

  • Modifying Third-Party Module Formatting

  • Call to Action

What is a PowerShell Formatting File?

A PowerShell formatting file is one that PowerShell uses to determine what properties of an object it displays and their formatting. The formatting is accomplished through defining views of objects. You can define any number of views for an object. What's more, you can define a single view for each object, a single view for multiple objects or multiple views of the same object.

You can display objects using four different types of views. A Table View lists object properties in multiple columns, with each row representing a returned object. A Wide View also lists object properties in multiple columns, but without labels or headers. A List View lists object properties in a single column, with each row representing a property. Finally, a Custom View allows you to customize the presentation of properties.

Formatting files do not determine what properties of an object that a pipeline returns. You can use any property of an object returned by a pipeline regardless of whether it displays.



Ultimate Systems Administration Cert Guide

A 158-page guide to every Microsoft, VMware, Citrix, AWS, Google, and Linux certification, and how they fit into your career.

By submitting this form you agree that you have read, understood, and are able to consent to our privacy policy.

Don't Miss Out

Get great content delivered to your inbox.

I have read and understood the privacy policy, and am able to consent to it.

Recommended Articles

Get CBT Nuggets IT training news and resources

I have read and understood the privacy policy and am able to consent to it.

© 2022 CBT Nuggets. All rights reserved.Terms | Privacy Policy | Accessibility | Sitemap | 2850 Crescent Avenue, Eugene, OR 97408 | 541-284-5522