• 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 Software arrow Add-PSSnapin [asnp]
Add-PSSnapin [asnp] Print E-mail
Written by Diana, on 03-09-2007 23:09
Views 107    
Favoured None

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

NAME
    Add-PSSnapin

SYNOPSIS
    Adds one or more Windows PowerShell snap-ins to the current console.

SYNTAX
    Add-PSSnapin [-name] <string[]> [-passThru] [<CommonParameters>]


DETAILED DESCRIPTION
    The Add-PSSnapIn cmdlet adds one or more Windows PowerShell snap-ins to the current console. After the snap-ins are added, you can use the cmdlets and providers that the snap-in supports in the current console.


PARAMETERS
    -name <string[]>
        The unique name of each PSSnapIn to add to the current console; for example Microsoft.Exchange or MyCompany.User. The parameter name is optional.

        Required?                    true
        Position?                    1
        Default value
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  true

    -passThru <SwitchParameter>
        Passes the object created by this cmdlet through the pipeline. By default, this cmdlet does not pass any objects through the pipeline.

        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
    PSSnapIn info object


NOTES


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

        For detailed information about snap-ins in Windows PowerShell, type "get-help about_pssnapins". For help with creating a Windows PowerShell snap-in, see the Windows PowerShell SDK.

        Add-PSSnapin adds the snap-in only to the current console. To save the current console (with the added snap-in), use Export-Console. Otherwise, the snap-in will not be available if you use the console again.

        You can add any Windows PowerShell snap-in that has been registered by using the .NET Framework install utility. For details, see the Windows PowerShell SDK. To get a list of snap-ins that are registered on your computer, type "Get-PsSnapin -registered".

        Before adding a snap-in, Add-PSSnapIn checks the version of the snap-in to verify that it is compatible with the shell. If the snap-in fails the version check, Windows PowerShell reports an error.

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

        You can also refer to Add-PSSnapIn by its built-in alias, "asnp". For more information, type "get-help About_Alias".


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

    C:\PS>add-PSSnapIn Microsoft.Exchange,Microsoft.Windows.AD


    This command adds the Microsoft Exchange and Microsoft Active Directory Directory Services snap-ins to the current console.





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

    C:\PS>get-pssnapin -registered | add-pssnapin -passthru


    This command adds all of the registered Windows PowerShell snap-ins to the console. It uses the Get-PsSnapin cmdlet with the Registered parameter to get objects representing each of the registered snap-ins. The pipeline operator (|) passes the result to Add-PsSnapin, which adds them to the console. The Passthru parameter passes the object down the pipeline. Because there are no more command in the pipeline, the object are displayed in the console.






RELATED LINKS
    Get-PSSnapIn
    Remove-PSSnapIn
    Export-Console


Last update: 03-09-2007 23:28

Published in : Tools, Windows PowerShell

Users' Comments (0) RSS feed comment

No comment posted

Add your comment



mXcomment 1.0.4 © 2007-2008 - 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: 05:15
Caching: Disabled
GZIP: Disabled
Members: 35
News: 2446
Web Links: 39
Visitors: 1235304

Syndicate

Login

Particls