Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
InitialSessionState.CreateDefault2 Method
Definition
- Namespace:
- System.Management.Automation.Runspaces
- Assembly:
- System.Management.Automation.dll
- Package:
- Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
- Package:
- System.Management.Automation v7.4.15
- Package:
- System.Management.Automation v7.5.6
- Package:
- System.Management.Automation v7.6.1
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the default PowerShell one with default cmdlets, provider etc. The default cmdlets, provider, etc are loaded via Modules. For loading Microsoft.PowerShell.Core module only.
public:
static System::Management::Automation::Runspaces::InitialSessionState ^ CreateDefault2();
public static System.Management.Automation.Runspaces.InitialSessionState CreateDefault2();
static member CreateDefault2 : unit -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function CreateDefault2 () As InitialSessionState
