| Written by Diana, on 04-09-2007 02:28 |
| Views |
56  |
|
|
|
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
Last update: 04-09-2007 02:28
Users' Comments (0)
|
|
|