Windows Vista Forums

Re: learning PowerShell

  1. #1


    OldDog Guest

    Re: learning PowerShell

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

    > 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:

    > > 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

  2. #2


    Larry__Weiss Guest

    Re: learning PowerShell

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

    - Larry


    OldDog wrote:

    > 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

  3. #3


    Bill Stewart Guest

    Re: learning PowerShell

    Bob Landau wrote:

    > 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

Re: learning PowerShell

Similar Threads
Thread Thread Starter Forum Replies Last Post
get-help, wildcarding and the PowerShell learning curve Larry__Weiss PowerShell 2 13 Jul 2009
still learning -- what's the best way to do this in powershell? J.Marsch PowerShell 6 17 Sep 2007
Best references for learning C# for PowerShell? Marco Shaw PowerShell 3 16 Mar 2007
Learning .NET for PowerShell Joe Topjian PowerShell 7 14 Jan 2007
learning powershell Bob Weiner PowerShell 8 02 Jul 2006