PowerShell Logo Small

Get-PSSnapin



This is the built-in help made by Microsoft for the command 'Get-PSSnapin', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets the Windows PowerShell snap-ins on the computer.

SYNTAX


Get-PSSnapin [[-Name] <String[]>] [-Registered] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-PSSnapin cmdlet gets the Windows PowerShell snap-ins that have been added to the current session or that have been registered on the system. The snap-ins are
listed in the order in which they are detected.


Get-PSSnapin gets only registered snap-ins. To register a Windows PowerShell snap-in, use the InstallUtil tool included with the Microsoft .NET Framework 2.0. For mor
e information, see "How to Register Cmdlets, Providers, and Host Applications" in the MSDN (Microsoft Developer Network) library at http://go.microsoft.com/fwlink/?Li
nkId=143619.


Beginning in Windows PowerShell 3.0, the core commands that are included in Windows PowerShell are packaged in modules. The exception is Microsoft.PowerShell.Core, wh
ich is a snap-in (PSSnapin). Only the Microsoft.PowerShell.Core snap-in is added to the session by default. Modules are imported automatically on first use and you ca
n use the Import-Module cmdlet to import them.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=289590
Add-PSSnapin
Remove-PSSnapin

REMARKS

<

Examples


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

PS C:\>get-PSSnapIn



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








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

PS C:\>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 session. The output d
oes not include snap-ins that are installed with Windows PowerShell or Windows PowerShell snap-in dynamic-link libraries (DLLs) that have not yet been registered on t
he system.








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

PS C:\>get-PSSnapIn smp*



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