JA Control Panel

Diana Scherff [dot] com

We now have handheld and iPhone layouts!
Android users, just scan this bar code

Get-PSSnapin [gsnp]

E-mail Print PDF
User Rating: / 0
PoorBest 

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

NAME
    Get-PSSnapin

SYNOPSIS
    Gets the Windows PowerShell snap-ins on the computer.

SYNTAX
    Get-PSSnapin [[-name] <string[]>] [-registered] [<CommonParameters>]


DETAILED DESCRIPTION
    The Get-PSSnapIn cmdlet gets objects representing each Windows PowerShell snap-in available in the current console or registered on the system. The snap-ins are listed in the order in which they appear in the console file.


PARAMETERS
    -name <string[]>
        Gets only the specified Windows PowerShell snap-ins. Enter the names of one or more Windows PowerShell snap-ins. Wildcards are permitted.

        The parameter name ("-Name") is optional.

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

    -registered <SwitchParameter>
        Gets only the Windows PowerShell snap-ins that have been registered on the system. The snap-ins that are installed with Windows PowerShell do not appear in this list.

        Required?                    false
        Position?                    named
        Default value                False
        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
    PSSnapInInfo.Name


RETURN TYPE
    PSSnapInInfo objnct.


NOTES


        For more information, type "Get-Help Get-PSSnapIn -detailed". For technical information, type "Get-Help Get-PSSnapIn -full".

         When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

        You can also refer to Get-PSSnapin by its built-in alias, "psnp". For more information, see About_Alias.


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

    C:\PS>get-PSSnapIn


    This command get the Windows PowerShell snap-ins that are currently loaded in the console. This includes the snap-ins that are installed with Windows PowerShell and those that have been added to the console.





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

    C:\PS>get-PSSnapIn * -registered


    This command gets the Windows PowerShell snap-ins that have been registered on the computer, including those that have already been added to the console. The output does not include snap-ins that are installed with Windows PowerShell or Windows PowerShell snap-in DLLs that have not yet been registered on the system.





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

    C:\PS>get-PSSnapIn smp*


    This command gets the Windows PowerShell snap-ins in the current console that have names that begin with "smp".






RELATED LINKS
    Add-PSSnapIn
    Remove-PSSnapIn
    Export-Console

Eats

License and Copyright

This website and its content is © Diana Scherff – 1997-2011. All rights reserved. Any redistribution or reproduction of part or all of the contents in any form is prohibited other than the following: You may print or download to a local hard disk extracts for your personal and non-commercial use only.

You may not, except with our express written permission, distribute or commercially exploit the content. Nor may you transmit it or store it in any other website or other form of electronic retrieval system.

Applies to all content unless otherwise stated.

You are here: Miscellaneous Tools Windows PowerShell Get-PSSnapin