February 2019
Intermediate to advanced
626 pages
15h 51m
English
When used without any parameters, Measure-Object will return a value for Count, which is the number of items passed in using the pipeline, for example:
PS> 1, 5, 9, 79 | Measure-ObjectCount : 4Average :Sum :Maximum :Minimum :Property :
Each of the remaining properties is empty, unless requested using their respective parameters. For example, -Sum may be requested:
PS> 1, 5, 9, 79 | Measure-Object -SumCount : 4Average :Sum : 94Maximum :Minimum :Property :
Adding the remaining parameters will fill in the rest of the fields (except Property):
PS> 1, 5, 9, 79 | Measure-Object -Average -Maximum -Minimum -SumCount : 4Average : 23.5Sum : 94Maximum : 79Minimum : 1Property :
The value for Property is filled in when Measure-Object ...
Read now
Unlock full access