René's URL Explorer Experiment


Title: Move `$PROFILE.CurrentUser*` and friends out of documents · Issue #25097 · PowerShell/PowerShell · GitHub

Open Graph Title: Move `$PROFILE.CurrentUser*` and friends out of documents · Issue #25097 · PowerShell/PowerShell

X Title: Move `$PROFILE.CurrentUser*` and friends out of documents · Issue #25097 · PowerShell/PowerShell

Description: Summary of the new feature / enhancement With respect, apologies for the candor in this post. Powershell's profile, modules, and configuration are all placed in directories that end up in documents because they scaffold off of HKEY_CURRE...

Open Graph Description: Summary of the new feature / enhancement With respect, apologies for the candor in this post. Powershell's profile, modules, and configuration are all placed in directories that end up in documents...

X Description: Summary of the new feature / enhancement With respect, apologies for the candor in this post. Powershell's profile, modules, and configuration are all placed in directories that end up in docum...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/25097

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move `$PROFILE.CurrentUser*` and friends out of documents","articleBody":"### Summary of the new feature / enhancement\n\nWith respect, apologies for the candor in this post.\n\nPowershell's profile, modules, and configuration are all placed in directories that end up in documents because they scaffold off of  `HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folder\\Personal`.\n\n\nUsing the documents folder for configuration files and modules is absolutely ridiculous and against the conventions long established by shell configurations and tools. We do not place configuration in the user's documents folder. They are not documents. The user's profile and settings? Also not documents.\n\nThis poor default behavior is the source of many issues relating to modules. Issues PowerShell/PSResourceGet/issues/1494, #15552, and many, many others highlight just how problematic this default is.\n\nNothing that is stored here should be considered documents. The general user is not meant to see these. Worse, even, modern installs of Windows coerce users into having their home documents be stored on OneDrive.\nAs a result of the poor decision to build the $PROFILE.CurrentUser off of this variable, the user's profile, modules, and configuration files are all stored in the unintuitive personal documents folder, causing them to now sync to OneDrive by default.\n\nLook at the number of upvotes for #15552 which has been enthusiastically requested—nay, demanded— by the community.\nPlease do not let this issue fall on deaf ears. And don't let the claims of \"but this is a breaking change\" deter anything. This is **not** a breaking change. Not when you give the option to migrate to the new location when installing the module.\n\nThis is an important issue. You have [members of azure pleading for this behavior to change](https://github.com/PowerShell/PSResourceGet/issues/1494#issuecomment-2036094953).\nHowever, the issues that they are posting on are addressing the symptoms, not the cause. The cause is considering this registry key.\n\nNow, in my opinion, the _default_ location used to scaffold the rest should be `~/.powershell` aka `%USERPROFILE%\\.powershell` aka `$env:USERPROFILE`, though the convention in Windows would be somewhere in `%APPDATA%` (`$env:APPDATA`).\n\nThe _best_ solution would be to have an environment variable (or a registry key?) that the user can change to set this path, and which defaults to one of the above when not set. Any other solution prevents users from easily placing this folder where they desire.\n\n\nSane defaults that follow well-established conventions are crucial. Please do not alienate your userbase. Almost all relevant developer programs place their configuration files either in %USERPROFILE% or %APPDATA%. Powershell must, too. \n\nI already have a hard enough time convincing my colleagues that Powershell isn't a joke. I really like it, but they look at things like this and laugh it off.\n\n\n#### Relevant discussions\n\nFrom @rjmholt: [link](https://github.com/PowerShell/PowerShell/issues/15552#issuecomment-897232938)\n> In terms of changing the default PSModulePath, there have been a lot of proposals to fix PSModulePath in various ways. Changing the CurrentUser path away from MyDocuments is going to break PowerShellGet, since it depends on the same location being used. However, the MyDocuments path clearly presents problems, and both the proposed alternatives ($env:LOCALAPPDATA\\PowerShell\\Modules and $HOME\\PowerShell\\Modules) make sense.\n\nFrom @KirillOsenkov: [link](https://github.com/PowerShell/PSResourceGet/issues/1494#issuecomment-2036094953)\n\n> ... would it be possible to proritize this? I'm from Azure Data and we have very significant support costs in our org related to modules being in OneDrive.\n\nFrom @rkeithhill: [link](https://github.com/PowerShell/PowerShell/issues/15552#issuecomment-945972364)\n\n> My preference is `~\\.pwsh` (or `~\\.powershell`) on Windows. The Microsoft guidance is to use `~\\AppData\\Local\\Microsoft\\PowerShell` or some folder like that under `~\\AppData\\Local`. My problem with that is `AppData` is hidden which doesn't make for a great user experience when you tell folks to edit their `~\\AppData\\Local\\Microsoft\\PowerShell\\profile.ps1` script. If they try to **navigate** to that file via File Explorer they're likely to get tripped up by the \"missing\" `AppData` dir.\n\nFrom @o-l-a-v [link](https://github.com/PowerShell/PSResourceGet/issues/1494#issuecomment-2036244390)\n\n> This is how PowerShell have worked since forever. We've requested the ability to choose path for years. I don't see it happening any time soon.\n\nSentiments like these indicate just how extremely infuriating this is.\n\nAnd, posted almost _four years ago_, this gem from @JamesWTruher ([link](https://github.com/PowerShell/PowerShell/issues/15552#issuecomment-904125953)).\n\n> With behavior of OneDrive the WG agrees that we need to come up with a proper solution, however the scenarios have a high level of complexity which is exacerbated by the need that other PS tools also need to be able to use whatever solution is made available.\n> \n> The WG proposes that PS should provide an API which allows tools to query for the default location of modules. The tool chain also needs to be able to query PS so the values are consistent.\n> \n> We propose that an RFC is needed to define the behaviors, not only for PowerShell proper but for tools like PowerShellGet.\n> \n> We think at least the following requirements need to be addressed in the RFC:\n> \n> * where is the default location for PSModulePath (system and/or user)\n> * how may this default location be modified\n> * how is the API used by PS and the other tools\n> * how are misconfigurations handled (non-existing paths, multiple paths, etc)\n\n\nWhat happened to that RFC? This was 4 years ago. What's going on?\n\n\nThis was shortly followed by [this post](https://github.com/PowerShell/PowerShell/issues/15552#issuecomment-1020778471) by @iSazonov \n\n> I think it is good time to make the breaking change, preserve Document folder for module searching but install in new and more appropriate folder in user profile.\n\n\n### Proposed technical implementation details (optional)\n\n\n\n_No response_","author":{"url":"https://github.com/bavalpey","@type":"Person","name":"bavalpey"},"datePublished":"2025-02-26T17:50:57Z","url":"https://github.com/PowerShell/PowerShell/issues/25097"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c0dde589-3dd5-4dd5-36ac-a7b8e0181321
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB5E:255994:87C8F:B4327:6AFD0BCC
html-safe-nonce27483be057e12be798a5bf8a450c9b39bdfb0219945ed9e04e85410cad871be5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjVFOjI1NTk5NDo4N0M4RjpCNDMyNzo2QUZEMEJDQyIsInZpc2l0b3JfaWQiOiIxNDk3NjgwMjYyMTIzNTU1Nzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb714e6d79d48d5f3031fe16756d9ba6cf7c7b14bdf30c45dc6a1084f383fdf04
hovercard-subject-tagissue:2882393674
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/25097/issue_layout
twitter:imagehttps://opengraph.githubassets.com/93c073831c80db20137bc0f4a251be2a73749f59dea2f7deb89b836113422abd/PowerShell/PowerShell/issues/25097
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/93c073831c80db20137bc0f4a251be2a73749f59dea2f7deb89b836113422abd/PowerShell/PowerShell/issues/25097
og:image:altSummary of the new feature / enhancement With respect, apologies for the candor in this post. Powershell's profile, modules, and configuration are all placed in directories that end up in documents...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebavalpey
hostnamegithub.com
expected-hostnamegithub.com
Noneb29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c9e619def6d670dc18a45d3b02cea938c1c7e47
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/25097#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F25097
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F25097
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/25097
Reloadhttps://github.com/PowerShell/PowerShell/issues/25097
Reloadhttps://github.com/PowerShell/PowerShell/issues/25097
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/25097
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/25097
Move $PROFILE.CurrentUser* and friends out of documentshttps://github.com/PowerShell/PowerShell/issues/25097#top
Resolution-DuplicateThe issue is a duplicate.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Duplicate%22
https://github.com/bavalpey
Benjamin Valpey (bavalpey)https://github.com/bavalpey
on Feb 26, 2025https://github.com/PowerShell/PowerShell/issues/25097#issue-2882393674
PowerShell/PSResourceGet/issues/1494https://github.com/PowerShell/PSResourceGet/issues/1494
#15552https://github.com/PowerShell/PowerShell/issues/15552
#15552https://github.com/PowerShell/PowerShell/issues/15552
members of azure pleading for this behavior to changehttps://github.com/PowerShell/PSResourceGet/issues/1494#issuecomment-2036094953
Rob Holt (@rjmholt)https://github.com/rjmholt
linkhttps://github.com/PowerShell/PowerShell/issues/15552#issuecomment-897232938
Kirill Osenkov (@KirillOsenkov)https://github.com/KirillOsenkov
linkhttps://github.com/PowerShell/PSResourceGet/issues/1494#issuecomment-2036094953
Keith Hill (@rkeithhill)https://github.com/rkeithhill
linkhttps://github.com/PowerShell/PowerShell/issues/15552#issuecomment-945972364
Olav Rønnestad Birkeland (@o-l-a-v)https://github.com/o-l-a-v
linkhttps://github.com/PowerShell/PSResourceGet/issues/1494#issuecomment-2036244390
James Truher (@JamesWTruher)https://github.com/JamesWTruher
linkhttps://github.com/PowerShell/PowerShell/issues/15552#issuecomment-904125953
this posthttps://github.com/PowerShell/PowerShell/issues/15552#issuecomment-1020778471
Ilya (@iSazonov)https://github.com/iSazonov
Benjamin Valpey (bavalpey)https://github.com/bavalpey
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Feb 26, 2025https://github.com/PowerShell/PowerShell/issues/25097#event-16484244807
Benjamin Valpey (bavalpey)https://github.com/bavalpey
on Feb 27, 2025https://github.com/PowerShell/PowerShell/issues/25097#event-16492144842
https://github.com/237dmitry
237dmitryhttps://github.com/237dmitry
on Feb 27, 2025https://github.com/PowerShell/PowerShell/issues/25097#issuecomment-2688388451
https://github.com/bavalpey
Benjamin Valpey (bavalpey)https://github.com/bavalpey
on Feb 27, 2025https://github.com/PowerShell/PowerShell/issues/25097#issuecomment-2688418987
Benjamin Valpey (bavalpey)https://github.com/bavalpey
on Feb 27, 2025https://github.com/PowerShell/PowerShell/issues/25097#event-16499509790
https://github.com/totkeks
Norman Dankert (totkeks)https://github.com/totkeks
on Mar 4, 2025https://github.com/PowerShell/PowerShell/issues/25097#issuecomment-2696817628
https://github.com/LGL-Ben
LGL-Benhttps://github.com/LGL-Ben
on Jun 18, 2025https://github.com/PowerShell/PowerShell/issues/25097#issuecomment-2983606332
Ryan Yates (kilasuit)https://github.com/kilasuit
Resolution-DuplicateThe issue is a duplicate.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Duplicate%22
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Jul 20, 2025https://github.com/PowerShell/PowerShell/issues/25097#event-18715096828
https://github.com/kilasuit
Ryan Yates (kilasuit)https://github.com/kilasuit
on Jul 20, 2025https://github.com/PowerShell/PowerShell/issues/25097#issuecomment-3093679087
PowerShell/PowerShell-RFC#388https://github.com/PowerShell/PowerShell-RFC/pull/388
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Jul 21, 2025https://github.com/PowerShell/PowerShell/issues/25097#issuecomment-3095817853
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 21, 2025https://github.com/PowerShell/PowerShell/issues/25097#event-18724105175
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Jul 21, 2025https://github.com/PowerShell/PowerShell/issues/25097#issuecomment-3095818135
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
Benjamin Valpey (@bavalpey)https://github.com/bavalpey
https://aka.ms/PSRepoFeedbackhttps://aka.ms/PSRepoFeedback
Microsoft Formshttps://aka.ms/PSRepoFeedback
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/25097
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/25097
Resolution-DuplicateThe issue is a duplicate.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Duplicate%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.