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 - Get-Format/Get-View command to return views, view defs?

Reply
 
Old 05-19-2006   #1 (permalink)
Alex K. Angelopoulos [MVP]


 
 

Get-Format/Get-View command to return views, view defs?

Anyone interested in the idea of a Get-View cmdlet that will return views as
currently defined in a PowerShell instance?

I'm not sure how universally valuable it would be, but it would certainly
complement Get-Command and Get-Member fairly well.



My System SpecsSystem Spec
Old 05-19-2006   #2 (permalink)
Kevin Loo [MSFT]


 
 

Re: Get-Format/Get-View command to return views, view defs?

This Cmdlet didn't make it to the current version. Please file a feature
request.
In the meantime, you can use our tracing capability to determine what view
is applied to an object. Please check out this blog entry:
http://blogs.msdn.com/powershell/arc...25/583263.aspx for details.

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

"Alex K. Angelopoulos [MVP]" <a k a @ m v p s . o r g> ¼¶¼g©ó¶l¥ó·s»D:%23oWSms3eGHA.3468@TK2MSFTNGP03.phx.gbl...
> Anyone interested in the idea of a Get-View cmdlet that will return views
> as currently defined in a PowerShell instance?
>
> I'm not sure how universally valuable it would be, but it would certainly
> complement Get-Command and Get-Member fairly well.
>



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


 
 

Re: Get-Format/Get-View command to return views, view defs?

On Fri, 19 May 2006 15:32:38 -0400, "Alex K. Angelopoulos [MVP]" <a k
a @ m v p s . o r g> wrote:

>Anyone interested in the idea of a Get-View cmdlet that will return views as
>currently defined in a PowerShell instance?
>
>I'm not sure how universally valuable it would be, but it would certainly
>complement Get-Command and Get-Member fairly well.


Alex,

Care to elaborate on what you see as the greatest benefits? And
precisely what you would like it to do?

Andrew Watt MVP
My System SpecsSystem Spec
Old 05-20-2006   #4 (permalink)
Alex K. Angelopoulos [MVP]


 
 

Re: Get-Format/Get-View command to return views, view defs?

"Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
news:ic8s621albv5dcqnu32ula8dntgqphq7fl@4ax.com...
> On Fri, 19 May 2006 15:32:38 -0400, "Alex K. Angelopoulos [MVP]" <a k
> a @ m v p s . o r g> wrote:
>
>>Anyone interested in the idea of a Get-View cmdlet that will return views
>>as
>>currently defined in a PowerShell instance?
>>
>>I'm not sure how universally valuable it would be, but it would certainly
>>complement Get-Command and Get-Member fairly well.

>
> Alex,
>
> Care to elaborate on what you see as the greatest benefits? And
> precisely what you would like it to do?


I'm not at all certain about either, but here are some guesses about some
possible interesting things with it.

First, the correct noun would probably be PSView. Get-PSView would return
data about the structure of the view in different situations, generally
which parameters would be displayed and how wide columns are for tabular
views, etc. There might be a corresponding Set-PSView to change the view of
a data type dynamically. Get-PSView should take either actual command output
or typenames as arguments/input.

I would also probably like to see some matching cmdlets for
exporting/importing views (Export-PSView/Import-PSView) so they can be
shared/saved. There might be room for a distinct set of commands for
installing/uninstalling views persistently and checkpointing/restoring
views.



My System SpecsSystem Spec
Old 05-20-2006   #5 (permalink)
dreeschkind


 
 

Re: Get-Format/Get-View command to return views, view defs?

I just love PowerShell's beauty and extensibility.
And I can't even imagine what fantastic new extensions v2 and v3 will bring
to us...

--
greetings
dreeschkind


"Alex K. Angelopoulos [MVP]" wrote:

> "Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
> news:ic8s621albv5dcqnu32ula8dntgqphq7fl@4ax.com...
> > On Fri, 19 May 2006 15:32:38 -0400, "Alex K. Angelopoulos [MVP]" <a k
> > a @ m v p s . o r g> wrote:
> >
> >>Anyone interested in the idea of a Get-View cmdlet that will return views
> >>as
> >>currently defined in a PowerShell instance?
> >>
> >>I'm not sure how universally valuable it would be, but it would certainly
> >>complement Get-Command and Get-Member fairly well.

> >
> > Alex,
> >
> > Care to elaborate on what you see as the greatest benefits? And
> > precisely what you would like it to do?

>
> I'm not at all certain about either, but here are some guesses about some
> possible interesting things with it.
>
> First, the correct noun would probably be PSView. Get-PSView would return
> data about the structure of the view in different situations, generally
> which parameters would be displayed and how wide columns are for tabular
> views, etc. There might be a corresponding Set-PSView to change the view of
> a data type dynamically. Get-PSView should take either actual command output
> or typenames as arguments/input.
>
> I would also probably like to see some matching cmdlets for
> exporting/importing views (Export-PSView/Import-PSView) so they can be
> shared/saved. There might be room for a distinct set of commands for
> installing/uninstalling views persistently and checkpointing/restoring
> views.
>
>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Vista Prof: Windows Explorer views: how to get the view I want everytime? Vista General
Explorer VIEWS. How to force one and only one (1) VIEW Vista General
Explorer VIEWS. How to force one and only one (1) VIEW Vista performance & maintenance
Newbie question about Explorer Views and common dialog details view?? Vista General
Help and Suport missing format view Vista General


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