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 object.
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
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
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
get-PSSnapIn smp*
This command gets the Windows PowerShell snap-ins in the current console that have names that begin with "smp".
RELATED LINKS
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.