Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Powershell 6.2.3 installation removes Path from $env:PsModulePath #10620

Copy link
Copy link
@Stephanevg

Description

@Stephanevg
Issue body actions

Hi guys,

I just installed powershell version 6.2.3 on my professional laptop, through a suggestion in vscode telling me that my powershell version was out of date. IT offered me to install, which I did.

Since then, I noticed none of my modules in C:\program files\Windowspowershell\modules\ could be loaded anymore.

Having a closer look at my env path, this is what I see in vscode:

image

We don't have C:\program files\Windowspowershell\modules\ anymore but C:\program files\powershell\modules\ instead.

This is a breaking change for me.

After a second check, I do have now version 6.2.3 of powershell available in vscode (loaded by default).

image

This is of course not what I wanted.

I can imagine that that path is missing only because it is powershell core, and that the folder WindowsPowershell can't be present on a mac / linux box.

So far, I am ok with that.
But I work on a Windows machine, and that WindowsPowershell path has been there since modules where introduced.

Did I do something stupid and removed it my self? or is this really part of pscore? If so, why also on a Windows machines?

And how can default back to Windows 5.1 on vscode, because clearly broke a lot of working habits (And reduced once more, the user experience I have with VsCode)

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.