• Narrow screen resolution
  • Wide screen resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • red color
© Diana Scherff, Amas-Veritas.com

Welcome to Amas Veritas [dot] com

Updates: Media (lyrics) has a new layout. I could never figure out how to lay it out, but it's easier to navigate now. I'm still working on a better duplicate Mamblog mod. I'm trying to make submittions easier but the poetry form died for some reason. Quizzes are also on their way from the old site. Joomla content isn't very code friendly so I'm having to rewrite old code. You can still click on News > AH v21 > Screen if you wish to use the quizzes.
 
Home arrow Tools arrow Windows PowerShell arrow Get-Variable [gv]
Get-Variable [gv] Print E-mail
Written by Diana, on 04-09-2007 02:31
Views 122    
Favoured None

PS C:\Users\Admin> help gv -full

NAME
    Get-Variable

SYNOPSIS
    Gets the variables in the current console.

SYNTAX
    Get-Variable [[-name] <string[]>] [-include <string[]>] [-exclude <string[]>] [-valueOnly] [-scope <string>] [<CommonParameters>]


DETAILED DESCRIPTION
    Gets the Windows PowerShell variables in the current console. You can retrieve just the values of the variables by specifying the ValueOnly parameter and you can filter the variables returned by name.


PARAMETERS
    -name &ln;string[]>
        Specifies the name of the variable.

        Required?                    false
        Position?                    1
        Default value                * (gets all variables in Variable:/)
        Accept pipeline input?       true (ByValue, ByPropertyName)
        Accept wildcard characters?  true

    -include <string[]>
        Specifies only those items upon which the cmdlet will act, excluding all others. Wildcards are permitted.

        Required?                    false
        Position?                    named
        Default value
        Accept pipeline input?       false
        Accept wildcard characters?  true

    -exclude <string[]>
        Omits the specified items. Wildcards are permitted.

        Required?                    false
        Position?                    named
        Default value
        Accept pipeline input?       false
        Accept wildcard characters?  true

    -valueOnly <SwitchParameter>
        Gets only the value of the variable.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false

    -scope <string>
        Limits the variables retrieved to the specified scope. The value can be a named scope: "global", "local", or "script", "private" or it can be a number relative to the current scope (0 through the number of scopes where 0 is the current scope and increasing the number ny 1 moves to the parent scope of the current scope).

        Required?                    false
        Position?                    named
        Default value                Local
        Accept pipeline input?       false
        Accept wildcard characters?  false

    <CommonParameters>
        This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".


INPUT TYPE
    Object


RETURN TYPE
    Object


NOTES


        This cmdlet does not manage environment variables. To manage environment variables, you can use the environment variable provider.


    ----------------- EXAMPLE 1 -----------------

    C:\PS>get-variable m*


    This command displays variables with names that begin with the letter 'm'. The value of the variables is also displayed.





    ----------------- EXAMPLE 2 -----------------

    C:\PS>get-variable m* -valueonly


    This command displays only the values of the variables with names that begin with the letter 'm'.





    ----------------- EXAMPLE 3 -----------------

    C:\PS>get-variable -include M*,P* | sort-object name


    This command gets information about the variables that begin with either the letter 'M' or the letter 'P'. The results are piped to the Sort-Object cmdlet, sorted by name and displayed.






RELATED LINKS
    Set-Variable
    New-Variable
    Clear-Variable
    Remove-variable


Last update: 04-09-2007 02:31

Published in : Tools, Windows PowerShell

Users' Comments (0) RSS feed comment

No comment posted

Add your comment



mXcomment 1.0.4 © 2007-2009 - visualclinic.fr
License Creative Commons - Some rights reserved
 
< Prev   Next >




Double click any word on this page for a definition.
Using Firefox? Enable definitions by downloading the extension.
Sorry, this feature does not currently work in Opera or Safari.

No Users Online

Statistics

OS: FreeBSD
PHP: 5.2.1
MySQL: 4.1.21-log
Time: 21:04
Caching: Disabled
GZIP: Disabled
Members: 36
News: 2448
Web Links: 39
Visitors: 1443384

Syndicate

Login

Particls