InitialSessionState.CreateDefault Method

Definition

Creates the default PowerShell one with default cmdlets, provider etc. BuiltIn functions, aliases need to be available through default InitialSessionstate constructor. Need to have this discussion for packaging as well.

C++
public:
 static System::Management::Automation::Runspaces::InitialSessionState ^ CreateDefault();

Returns

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0