PSSnapIn Constructor ()
Updated: April 27, 2016
Applies To: Windows PowerShell
Creates a new PSSnapIn object. (Be aware that Windows PowerShell 2.0 introduced support for modules, which is the preferred method to add cmdlets and providers.)
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Windows PowerShell snap-ins are assemblies used to register cmdlets and providers, which allow you to extend the functionality of a runspace with the functionality of your own cmdlets and providers. For more information about Windows PowerShell snap-ins, see Windows PowerShell Snap-ins [ps].