You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this frequently for launching control panel items.
e.g.
appwiz
sysdm
Windows PowerShell
$PSVersionTable
Name Value
---------
PSVersion 5.1.18908.1000
ls env:pathext
Name Value
---------
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
Actual behavior
$PSVersionTable
Name Value
---------
PSVersion 7.0.0-preview.1
ls env:pathext
Name Value
---------
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
The ENV:Pathext was already removed on linux, so I hope Windows should still have .CPL.
This currently gets added in Windows Powershell, without it, it's a breaking change.
It would be ideal to have parity with the current Windows Powershell on this.
Activity
iSazonov commentedon Jun 3, 2019
You could directly add new value to PATHEXT environment variable. Why must pwsh do this internally?
brwilkinson commentedon Jun 3, 2019
iSazonov commentedon Jun 3, 2019
I don't know history why it was removed.
/cc Steve Lee (@SteveL-MSFT)
SteveL-MSFT commentedon Jun 5, 2019
This was inadvertently removed as part of #4942. Since this is a break from WinPS, we should put it back.