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 - Re: learning PowerShell

Reply
 
Old 07-16-2009   #1 (permalink)
OldDog


 
 

Re: learning PowerShell

On Jul 16, 8:15*am, Larry__Weiss <l...@xxxxxx> wrote:
Quote:

> After reading your post, I started looking at Get-Member last night.
> It certainly opens your eyes to the world of .Net objects.
>
> * - Larry
>
>
>
> tojo2000 wrote:
Quote:

> > The three things that I really liked when I first started were
> > 1. Objects and the pipeline. *Being able to pass objects down the
> > pipeline rather than text.
> > 2. Introspection. *Being able to take the output of the pipeline and
> > pipe it to Get-Member so that I can tell exactly which methods and
> > properties an object has.
> > 3. PSDrives. *The first time I loaded up the registry using a PSDrive,
> > that was really cool.- Hide quoted text -
>
> - Show quoted text -
Get-Member makes it really easy to see what your script is doing and
what it can do.

I frequently start a script and test it by doing a get-member on each
line, just to see where I am
and how to go forward.

My System SpecsSystem Spec
Old 07-16-2009   #2 (permalink)
Larry__Weiss


 
 

Re: learning PowerShell

I don't understand. Can you show an example?

- Larry


OldDog wrote:
Quote:

> Get-Member makes it really easy to see what your script is doing and
> what it can do.
>
> I frequently start a script and test it by doing a get-member on each
> line, just to see where I am
> and how to go forward.
My System SpecsSystem Spec
Old 07-17-2009   #3 (permalink)
Bill Stewart


 
 

Re: learning PowerShell

Bob Landau wrote:
Quote:

> 5) While Get-ChildItem is the best tool I can think of for dealing with
> resources on a generic provider. I find common file querys such as
>
> dir /a-d
> dir /0e
>
> are far to complicated.
Agreed -- in fact, I wrote my own "dir" script in PowerShell -- gci is
just too much typing from what I was used to in cmd.exe
(http://windowsitpro.com/article/articleid/101900/).

--
Bill Stewart
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
get-help, wildcarding and the PowerShell learning curve PowerShell
still learning -- what's the best way to do this in powershell? PowerShell
Best references for learning C# for PowerShell? PowerShell
Learning .NET for PowerShell PowerShell
learning powershell 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