InitialSessionState.ImportPSSnapIn Method (String, PSSnapInException)
Updated: April 27, 2016
Applies To: Windows PowerShell
Adds a snap-in to the initial session state. When the snap-in is added to the collection, the assembly is loaded and all elements (cmdlets, formats, and types) are added to the corresponding elements in the InitialSessionState object. This method is introduced in Windows PowerShell 2.0.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
The name of the snap-in to import.
A PSSnapInException object that contains a warning message.