Title: Modules under C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules not found with PowerShell 7-preview.6 · Issue #11172 · PowerShell/PowerShell · GitHub
Open Graph Title: Modules under C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules not found with PowerShell 7-preview.6 · Issue #11172 · PowerShell/PowerShell
X Title: Modules under C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules not found with PowerShell 7-preview.6 · Issue #11172 · PowerShell/PowerShell
Description: After updating to PowerShell 7-preview.6, I'm no longer able to import the ActiveDirectory module without providing the full path due to C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules no longer being in $env:PSModulePath. I know ther...
Open Graph Description: After updating to PowerShell 7-preview.6, I'm no longer able to import the ActiveDirectory module without providing the full path due to C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules no longer...
X Description: After updating to PowerShell 7-preview.6, I'm no longer able to import the ActiveDirectory module without providing the full path due to C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules no lo...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11172
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Modules under C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules not found with PowerShell 7-preview.6","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n-->\r\n\r\nAfter updating to PowerShell 7-preview.6, I'm no longer able to import the ActiveDirectory module without providing the full path due to `C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules` no longer being in `$env:PSModulePath`. I know there was an update to `Import-Module` with this version that would use implicit remoting to import the module via Windows PowerShell, but it does not appear to be working as expected.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\nImport-Module ActiveDirectory\r\n```\r\n\r\n# Expected behavior\r\n\r\nModule imports successfully by name.\r\n\r\n# Actual behavior\r\n\r\n```none\r\n>> Import-Module ActiveDirectory\r\nImport-Module: The specified module 'ActiveDirectory' was not loaded because no valid module file was found in any module directory.\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0-preview.6\r\nPSEdition Core\r\nGitCommitId 7.0.0-preview.6\r\nOS Microsoft Windows 10.0.18362\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\nCC @SteveL-MSFT ","author":{"url":"https://github.com/scrthq","@type":"Person","name":"scrthq"},"datePublished":"2019-11-22T23:50:31Z","url":"https://github.com/PowerShell/PowerShell/issues/11172"}
| 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:6b8e703c-729c-3693-58cb-77c705786af6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA58:D1B6C:25D979E:34B3E76:6AFD44D2 |
| html-safe-nonce | f5e545a9e44cffca7adbf1fb9305d461600bd94970bc0a3f772a101e1fd16790 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTU4OkQxQjZDOjI1RDk3OUU6MzRCM0U3Njo2QUZENDREMiIsInZpc2l0b3JfaWQiOiIyNDg5NTA4NjcxNzE3NzIxMjk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c17b569382861bd6bb9de070b2ce05eb46f766d9ce54f8a6432ca8747e2af0f6 |
| hovercard-subject-tag | issue:527468472 |
| 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/11172/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b93896b3aa05bc3cda477861914bed4d6ec1bfc97487c4e4bca9331999544f77/PowerShell/PowerShell/issues/11172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b93896b3aa05bc3cda477861914bed4d6ec1bfc97487c4e4bca9331999544f77/PowerShell/PowerShell/issues/11172 |
| og:image:alt | After updating to PowerShell 7-preview.6, I'm no longer able to import the ActiveDirectory module without providing the full path due to C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules no longer... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scrthq |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width