Skip to content

$PROFILE is not updated to default location on Windows  #11763

@tedonmain

Description

@tedonmain

Steps to reproduce

Re: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-6

Install PowerShell Core according to guidelines: dotnet tool install --global PowerShell

Expected behavior

$PROFILE is updated to C:\Users\me\Documents\PowerShell\Profile.ps1

Actual behavior

C:\Users\me\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 (location and file does not exist and unable to edit $PROFILE)

Environment data

PS ~ > $PSVersionTable

Name Value


PSVersion 6.2.3
PSEdition Core
GitCommitId 6.2.3
OS Microsoft Windows 10.0.19035
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

PS ~ >

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions