Contact Info

Crumbtrail

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

Add-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 »

Add-PSSnapin

Short description
Adds one or more Windows PowerShell snap-ins to the current session.

Syntax


Description
The Add-PSSnapin cmdlet adds registered Windows PowerShell snap-ins to the current session. After the snap-ins are adde
d, you can use the cmdlets and providers that the snap-ins support in the current session.


To add the snap-in to all future Windows PowerShell sessions, add an Add-PSSnapin command to your Windows PowerShell pr
ofile. For more information, see about_Profiles.


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). By default, only the Microsoft.PowerShell.C
ore snap-in is added to the session. Modules are imported automatically on first use and you can use the Import-Module 
cmdlet to import them.