Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Get-PSSnapin

Get-PSSnapin - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-PSSnapin

Short description
Gets the Windows PowerShell snap-ins on the computer.

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





Description
The Get-PSSnapin cmdlet gets the Windows PowerShell snap-ins that have been added to the current session or that have b
een 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 more information, see "How to Register Cmdlets, Providers, and Host Applica
tions" in the MSDN (Microsoft Developer Network) library at http://go.microsoft.com/fwlink/?LinkId=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, which 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 can use the Import-Module c
mdlet to import them.