Skip to content

The Powershell documentation erroneously states CurrentUser profiles are stored in the User's home directory #11845

@bavalpey

Description

@bavalpey

Type of issue

Other (describe below)

Feedback

The powershell documentation states:

You can create profile scripts that run for all users or just one user, the CurrentUser. CurrentUser profiles are stored in the user's home directory.

This is absolutely, unequivocall, incorrect. The user's home directory is %USERPROFILE%. Because of some absolute nonsense, Powershell's default is to store these in C:Users\username\Documents

Which is absurd by the way. I don't want my configuration files appearing in Documents, and I'm not sure this is a reasonable default for anyone, either.

While I'm posting this, is there any way to configure powershell to use a different path for this profile file? Editing the registry key as discussed here is unreasonable as this has gross ramifications elsewhere. (Can someone point me to the place where I can request this to be changed?)

Page URL

https://learn.microsoft.com/en-us/powershell/scripting/learn/shell/creating-profiles?view=powershell-7.5

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/docs-conceptual/learn/shell/creating-profiles.md

Author

@sdwheeler

Document Id

c3b21d50-9ab5-ad3c-316a-330a460a5dd0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions