Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Default display for measure-object

Reply
 
Old 05-22-2006   #1 (permalink)
Dave


 
 

Re: Default display for measure-object


"Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
news:2j947219aeh472kjhi7g64q87sl3unut9h@4ax.com...
>I would prefer if the default display for the measure-object cmdlet
> only displayed only properties that contain values.
>
> So if I type
>
> get-process | measure-object -Property handlecount, workingset -Sum
>
> I don't want to see blank rows for Average, Min and Max.
>
> I know that I can remove them from the display by, for example, using
> format-list Count, Sum, Property
> but I wonder why blank lines are visible by default here at all.
>
> Andrew Watt MVP


I vote for that also. Kinda annoying.

Dave.



My System SpecsSystem Spec
Old 05-22-2006   #2 (permalink)
Andrew Watt [MVP]


 
 

Default display for measure-object

I would prefer if the default display for the measure-object cmdlet
only displayed only properties that contain values.

So if I type

get-process | measure-object -Property handlecount, workingset -Sum

I don't want to see blank rows for Average, Min and Max.

I know that I can remove them from the display by, for example, using
format-list Count, Sum, Property
but I wonder why blank lines are visible by default here at all.

Andrew Watt MVP
My System SpecsSystem Spec
Old 05-22-2006   #3 (permalink)
Keith Hill [MVP]


 
 

Re: Default display for measure-object

"Dave" <dave.brannan@blueyonder.co.uk> wrote in message
news:elYrPXefGHA.4080@TK2MSFTNGP03.phx.gbl...
>
> "Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
> news:2j947219aeh472kjhi7g64q87sl3unut9h@4ax.com...
>>I would prefer if the default display for the measure-object cmdlet
>> only displayed only properties that contain values.
>>
>> So if I type
>>
>> get-process | measure-object -Property handlecount, workingset -Sum
>>
>> I don't want to see blank rows for Average, Min and Max.
>>
>> I know that I can remove them from the display by, for example, using
>> format-list Count, Sum, Property
>> but I wonder why blank lines are visible by default here at all.
>>
>> Andrew Watt MVP

>
> I vote for that also. Kinda annoying.


Ditto that.

--
Keith


My System SpecsSystem Spec
Old 05-22-2006   #4 (permalink)
Thomas Lee


 
 

Re: Default display for measure-object

In message <2j947219aeh472kjhi7g64q87sl3unut9h@4ax.com>, "Andrew Watt
[MVP]" <SVGDeveloper@aol.com> writes
>I would prefer if the default display for the measure-object cmdlet
>only displayed only properties that contain values.
>
>So if I type
>
>get-process | measure-object -Property handlecount, workingset -Sum
>
>I don't want to see blank rows for Average, Min and Max.
>
>I know that I can remove them from the display by, for example, using
>format-list Count, Sum, Property
>but I wonder why blank lines are visible by default here at all.


I suppose you could hack the dislay XML files...

--
Thomas Lee
doctordns@gmail.com
MVP - Admin Frameworks and Security
My System SpecsSystem Spec
Old 05-23-2006   #5 (permalink)
Lee Holmes [MSFT]


 
 

Re: Default display for measure-object

We do happen to have a structured way to make and vote for suggestions

--
Lee Holmes [MSFT]
Windows PowerShell Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.

"Keith Hill [MVP]" <r_keith_hill@no.spam.thank.u.hotmail.com> wrote in
message news:eztfLdffGHA.324@TK2MSFTNGP02.phx.gbl...
> "Dave" <dave.brannan@blueyonder.co.uk> wrote in message
> news:elYrPXefGHA.4080@TK2MSFTNGP03.phx.gbl...
>>
>> "Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
>> news:2j947219aeh472kjhi7g64q87sl3unut9h@4ax.com...
>>>I would prefer if the default display for the measure-object cmdlet
>>> only displayed only properties that contain values.
>>>
>>> So if I type
>>>
>>> get-process | measure-object -Property handlecount, workingset -Sum
>>>
>>> I don't want to see blank rows for Average, Min and Max.
>>>
>>> I know that I can remove them from the display by, for example, using
>>> format-list Count, Sum, Property
>>> but I wonder why blank lines are visible by default here at all.
>>>
>>> Andrew Watt MVP

>>
>> I vote for that also. Kinda annoying.

>
> Ditto that.
>
> --
> Keith
>



My System SpecsSystem Spec
Old 05-23-2006   #6 (permalink)
Andrew Watt [MVP]


 
 

Re: Default display for measure-object

On Tue, 23 May 2006 09:03:55 -0700, "Lee Holmes [MSFT]"
<lee.holmes@online.microsoft.com> wrote:

>We do happen to have a structured way to make and vote for suggestions


Anarchy is much more fun!!!

Those who wanted this can vote for it at
https://connect.microsoft.com/feedba...edbackID=78789.

Andrew Watt MVP
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to use measure-object against multiple file types PowerShell
Problem with Measure-Object on get-process PowerShell
Adding canonical aliases for Compare-Object, Measure-Object, New-Object PowerShell
measure-object {get-process} PowerShell
Multiple errors in help for measure-object PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46