Title: Having a network profile causes many execution policy issues · Issue #26121 · PowerShell/PowerShell · GitHub
Open Graph Title: Having a network profile causes many execution policy issues · Issue #26121 · PowerShell/PowerShell
X Title: Having a network profile causes many execution policy issues · Issue #26121 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/26121
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Having a network profile causes many execution policy issues","articleBody":"### Prerequisites\n\n- [x] Write a descriptive title.\n- [x] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [x] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [x] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nIn my work environment, user profiles are stored on a network path, of the format `\\\\\u003cdomain>.local\\home$\\\u003cuser name>`. As of Powershell 7.5.3 my `$profile` now cannot be loaded, because the profile file isn't digitally signed. \n\nThe only way I can see to change the path for `$profile` is [using the registry](https://serverfault.com/questions/195397/change-the-powershell-profile-directory), which will impact for that just PowerShell, so isn't a solution.\n\nI've instead tried switching to a different method, and using the following command to start PowerShell:\n```powershell\n\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\" -noprofile -noexit -command \"invoke-expression '. ''C:\\Users\\\u003cuser name>\\Powershell\\Microsoft.PowerShell_profile.ps1''' \"\n```\nThis, however, doesn't properly solve the problem, as modules are still installed using the path `\\\\\u003cdomain>.local\\home$\\\u003cuser name>`. This means, for example, that when importing some modules i get errors such as:\n> Import-Module: File \\\\\u003cdomain>.local\\home$\\\u003cuser name>\\PowerShell\\Modules\\Terminal-Icons\\0.11.0\\Terminal-Icons.psm1 cannot be loaded. The file \\\\seib.local\\Shares$\\Home\\tandrews\\PowerShell\\Modules\\Terminal-Icons\\0.11.0\\Terminal-Icons.psm1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.\n\nHow do I change *both* the path the profile is stored, without a registry change that will impact other applications, and therefore ensure that my modules can be loaded. \n\n### Expected behavior\n\n```console\nImport-Module -Name Terminal-Icons\n```\n\n### Actual behavior\n\n```console\nImport-Module -Name Terminal-Icons -Force\nImport-Module: File \\\\\u003cdomain>.local\\home$\\\u003cuser name>\\PowerShell\\Modules\\Terminal-Icons\\0.11.0\\Terminal-Icons.psm1 cannot be loaded. The file \\\\seib.local\\Shares$\\Home\\tandrews\\PowerShell\\Modules\\Terminal-Icons\\0.11.0\\Terminal-Icons.psm1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.\n```\n\n### Error details\n\n```console\n\n```\n\n### Environment data\n\n```powershell\nName Value\n---- -----\nPSVersion 7.5.3\nPSEdition Core\nGitCommitId 7.5.3\nOS Microsoft Windows 10.0.26100\nPlatform Win32NT\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n```\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/LarnuUK","@type":"Person","name":"LarnuUK"},"datePublished":"2025-09-30T09:01:33Z","url":"https://github.com/PowerShell/PowerShell/issues/26121"}
| 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:caaeaeab-914c-eb21-19e3-91d608565666 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A81C:2E24C3:1B748CF:266C4E0:6AFD0843 |
| html-safe-nonce | a5f11e99e36a66b2240755768c7a59fd16917f8931ee167d44b9ca178c3e0e2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODFDOjJFMjRDMzoxQjc0OENGOjI2NkM0RTA6NkFGRDA4NDMiLCJ2aXNpdG9yX2lkIjoiNTkwMTMwMDAxNzI4MDEyNDk5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca3420e370bf05f3df930a0e91007060564397c0bb3d967b73e1d74920e270fe |
| hovercard-subject-tag | issue:3468293268 |
| 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/26121/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf535d67bdc3955841220fbb267236eb204c53c2ad410ca13968d9d0fea55559/PowerShell/PowerShell/issues/26121 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf535d67bdc3955841220fbb267236eb204c53c2ad410ca13968d9d0fea55559/PowerShell/PowerShell/issues/26121 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LarnuUK |
| hostname | github.com |
| expected-hostname | github.com |
| None | b29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b |
| 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 | 8c9e619def6d670dc18a45d3b02cea938c1c7e47 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width