Windows Vista Forums

Newbie Question about Variables
  1. #1


    greatbarrier86 Guest

    Newbie Question about Variables

    Hi,

    Perhaps someone could help me with this. I'm a little stuck understanding
    how to find out a specific piece of information from a list of data. For
    instance, in Get-service, you have the various different parts, including
    status. I know that when you use get-service, you use the $._Status, but do i
    find out what ones are available? Are the available options the ones that are
    displayed when you run the full query?



      My System SpecsSystem Spec

  2. #2


    Brandon Shell [MVP] Guest

    Re: Newbie Question about Variables

    <Command> | Get-Member
    Example
    Get-Process | Get-Member

    More Info on Get-Member
    http://technet.microsoft.com/en-us/l.../bb978623.aspx

    Brandon Shell
    ---------------
    Blog: http://www.bsonposh.com/
    PSH Scripts Project: www.codeplex.com/psobject

    g> Hi,
    g>
    g> Perhaps someone could help me with this. I'm a little stuck
    g> understanding how to find out a specific piece of information from a
    g> list of data. For instance, in Get-service, you have the various
    g> different parts, including status. I know that when you use
    g> get-service, you use the $._Status, but do i find out what ones are
    g> available? Are the available options the ones that are displayed when
    g> you run the full query?
    g>



      My System SpecsSystem Spec

Newbie Question about Variables problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Question? PSPx000 General Discussion 2 16 Nov 2009
Newbie Question: Basic select-object Question. No Spam PowerShell 3 06 Oct 2009
question about auto-expanding variables in a string Andy PowerShell 1 11 Nov 2008
Newbie question Steve Grosz PowerShell 6 29 May 2008
Newbie question: autoexpanding variables that contain directory names using tab? arnaldo.cavazos PowerShell 3 16 Sep 2007