-
Notifications
You must be signed in to change notification settings - Fork 8.3k
pwsh.exe -C ./myscript.ps1 fails from WSL #13106
Copy link
Copy link
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Steps to reproduce
In WSL I created the following script file
From WSL I attempted to run the script:
Running the same script with Windows PowerShell succeeds:
Expected behavior
I expected the script to run successfully, as it does with Windows PowerShell
Actual behavior
Environment data
$PSVersionTable
Get-ExecutionPolicy -List