Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InitialSessionState::ImportPSModule Method

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Adds a list of modules to the initial session state.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodImportPSModule(IEnumerable<ModuleSpecification^>^)

Add a list of modules to import when the runspace is created.

This element is introduced in Windows PowerShell 5.0.

System_CAPS_pubmethodImportPSModule(array<String^>^)

Adds a list of modules to the initial session state. These modules are imported into the runspace when it is opened. This method is introduced in Windows PowerShell 2.0.

Return to top

Community Additions

Show: