Skip to content

Add .CPL back to $env:PathExt #9797

Closed

Description

Is it possible to add in the .CPL pathext ?

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.

Activity

  1. added
    Issue-Question
    on Jun 1, 2019
  2. iSazonov commented on Jun 3, 2019

    @iSazonov
    Collaborator

    You could directly add new value to PATHEXT environment variable. Why must pwsh do this internally?

  3. brwilkinson commented on Jun 3, 2019

    @brwilkinson
    Author
  4. iSazonov commented on Jun 3, 2019

    @iSazonov
    Collaborator

    I don't know history why it was removed.
    /cc Steve Lee (@SteveL-MSFT)

  5. SteveL-MSFT commented on Jun 5, 2019

    @SteveL-MSFT
    Member

    This was inadvertently removed as part of #4942. Since this is a break from WinPS, we should put it back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-QuestionResolution-Fixed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions