Title: Update PowerShellGet to install the modules and scripts to proper locations in PowerShell Core on Windows · Issue #2021 · PowerShell/PowerShell · GitHub
Open Graph Title: Update PowerShellGet to install the modules and scripts to proper locations in PowerShell Core on Windows · Issue #2021 · PowerShell/PowerShell
X Title: Update PowerShellGet to install the modules and scripts to proper locations in PowerShell Core on Windows · Issue #2021 · PowerShell/PowerShell
Description: This issue got reported in #1184. As per #1184, PowerShellGet in PowerShell Core on Windows should install the modules to the following locations. CurrentUser scope: ~\Documents\PowerShell\Modules - User documents module location for Pow...
Open Graph Description: This issue got reported in #1184. As per #1184, PowerShellGet in PowerShell Core on Windows should install the modules to the following locations. CurrentUser scope: ~\Documents\PowerShell\Modules ...
X Description: This issue got reported in #1184. As per #1184, PowerShellGet in PowerShell Core on Windows should install the modules to the following locations. CurrentUser scope: ~\Documents\PowerShell\Modules ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2021
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update PowerShellGet to install the modules and scripts to proper locations in PowerShell Core on Windows","articleBody":"This issue got reported in #1184.\nAs per #1184, PowerShellGet in PowerShell Core on Windows should install the modules to the following locations.\n\n``` powershell\nCurrentUser scope: ~\\Documents\\PowerShell\\Modules - User documents module location for PowerShell Core\n\nAllUsers scope: %ProgramFiles%\\PowerShell\u003cversion>\\Modules - Module path for the specific instance of PowerShell Core that is running.\n\nSimilar locations for scripts:\nCurrentUser scope: ~\\Documents\\PowerShell\\Scripts\nAllUsers scope: %ProgramFiles%\\PowerShell\u003cversion>\\Scripts\n\n```\n## Steps to reproduce\n\n``` powershell\nPS C:\\Program Files\\PowerShell\\6.0.0.9> ls C:\\Users\\masae\\Documents\\PowerShell\\Modules\n\nPS C:\\Program Files\\PowerShell\\6.0.0.9> ls C:\\Users\\masae\\Documents\\WindowsPowerShell\\Modules\\\n\nPS C:\\Program Files\\PowerShell\\6.0.0.9> (get-command Install-Module).Module.Path\nC:\\program files\\powershell\\6.0.0.9\\Modules\\PowerShellGet\\PSModule.psm1\n\nPS C:\\Program Files\\PowerShell\\6.0.0.9> Install-Module zlocation -Scope CurrentUser\n\nUntrusted repository\nYou are installing the modules from an untrusted repository. If you trust this repository, change its\nInstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from\n'PSGallery'?\n[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is \"N\"): A\n\nPS C:\\Program Files\\PowerShell\\6.0.0.9> ls C:\\Users\\masae\\Documents\\PowerShell\\Modules\n\nPS C:\\Program Files\\PowerShell\\6.0.0.9> ls C:\\Users\\masae\\Documents\\WindowsPowerShell\\Modules\\\n\n\n Directory: C:\\Users\\masae\\Documents\\WindowsPowerShell\\Modules\n\n\nMode LastWriteTime Length Name\n---- ------------- ------ ----\nd----- 2016-08-21 4:27 PM ZLocation\n\n\nPS C:\\Program Files\\PowerShell\\6.0.0.9>\n\n```\n## Expected behavior\n\nAs per #1184, PowerShellGet on Windows PowerShell Core should install the modules to the following locations.\n\n``` powershell\nCurrentUser scope: ~\\Documents\\PowerShell\\Modules - User documents module location for PowerShell Core\n\nAllUsers scope: %ProgramFiles%\\PowerShell\u003cversion>\\Modules - Module path for the specific instance of PowerShell Core that is running.\n\nSimilar locations for scripts:\nCurrentUser scope: ~\\Documents\\PowerShell\\Scripts\nAllUsers scope: %ProgramFiles%\\PowerShell\u003cversion>\\Scripts\n\n```\n## Actual behavior\n\nCaptured in the repro steps.\n## Environment data\n\n``` powershell\nPS C:\\Program Files\\PowerShell\\6.0.0.9> $PSVersionTable\n\nName Value\n---- -----\nPSVersion 6.0.0-alpha\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\nBuildVersion 3.0.0.0\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nPSEdition Core\nCLRVersion\nGitCommitId v6.0.0-alpha.9-107-gfb3d929e15c51028cf8d6ff6afd0dd19f288e9fd\nWSManStackVersion 3.0\n\n```\n","author":{"url":"https://github.com/bmanikm","@type":"Person","name":"bmanikm"},"datePublished":"2016-08-22T21:53:24Z","url":"https://github.com/PowerShell/PowerShell/issues/2021"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a08c0958-a46d-848b-be32-02b9b6ae85e1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A28:3FAC3:26D315:387C73:6AFD7AB2 |
| html-safe-nonce | 1644ca4faddf1a58ac960a97933771ae5accbe2a07c01ddb5afef60fdade5f3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTI4OjNGQUMzOjI2RDMxNTozODdDNzM6NkFGRDdBQjIiLCJ2aXNpdG9yX2lkIjoiMTk2MDUyODQ4NjUxODg0ODE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eadb3e3b438d8d18e1592f1e7fb092ee07d4996d9ae50942245d8ed7df7b4809 |
| hovercard-subject-tag | issue:172564353 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2021/issue_layout |
| twitter:image | https://opengraph.githubassets.com/094f2ce952488f8850acda385ba338be2b486fe0969baf2d6c086a32dbdeb4b8/PowerShell/PowerShell/issues/2021 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/094f2ce952488f8850acda385ba338be2b486fe0969baf2d6c086a32dbdeb4b8/PowerShell/PowerShell/issues/2021 |
| og:image:alt | This issue got reported in #1184. As per #1184, PowerShellGet in PowerShell Core on Windows should install the modules to the following locations. CurrentUser scope: ~\Documents\PowerShell\Modules ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bmanikm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width