Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 358eb7c

Browse files
committed
- Use InitialSessionState.CreateDefault2() as this allows all modules like Microsoft.PowerShell.Utility, etc to import properly.
1 parent ef2024e commit 358eb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSAppDeployToolkit.CustomRunspaceDemo/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static void Main()
1717
{
1818
// Set up the initial session state for the new runspace.
1919
WriteLogEntry("Setting up the initial session state for the new runspace.");
20-
var iss = InitialSessionState.CreateDefault();
20+
var iss = InitialSessionState.CreateDefault2();
2121

2222
// Import the PSAppDeployToolkit module into the initial session state.
2323
WriteLogEntry("Importing the PSAppDeployToolkit module into the initial session state.");

0 commit comments

Comments
 (0)