Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Customize Table Headings with PowerShell

$
0
0

Summary: Learn how to create a custom table heading by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display a table if the default property name is confusing?

Hey, Scripting Guy! Answer Use a hash table to customize the table properties. The elements of the hash table are Label and Expression (or alias’ L and E).

          In this example, I rename the ProcessName property to Name:

get-process | Format-Table @{L='name';E={$_.processname}}, id


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>