Databases Reference
In-Depth Information
Figure 2-43
You can format the output by grouping it based on a property (see Figure 2-44):
Get-Process s* | Group-Object ProcessName
Figure 2-44
You can also group using
Format
-
Table
. The result is different because you are not using
Group
-
Object
(see Figure 2-45):
Get-Process s* | Format-Table -group ProcessName
As shown in Figure 2-46, you can format the output column names using expressions:
Get-Process s* | Format-Table @{expression
=
"Processname"; width
=
25; label
=
"Process
Name"},
@{expression
=
"CPU"; width
=
15; label
=
"CPU Used"}
You can also output the result in the form of a list by using the
Format
-
List
cmdlet, as shown in
Figure 2-47:
Get-Process s* | Format-List
Search WWH ::
Custom Search