Title: Some modules published for PowerShell core cannot be imported · Issue #1346 · PowerShell/PowerShell · GitHub
Open Graph Title: Some modules published for PowerShell core cannot be imported · Issue #1346 · PowerShell/PowerShell
X Title: Some modules published for PowerShell core cannot be imported · Issue #1346 · PowerShell/PowerShell
Description: Steps to reproduce Import-Module AppxProvider Import-Module CimCmdlets Import-Module Microsoft.PowerShell.ODataUtils Import-Module Microsoft.WSMan.Management Expected behavior Modules published for PowerShell core should be able to be im...
Open Graph Description: Steps to reproduce Import-Module AppxProvider Import-Module CimCmdlets Import-Module Microsoft.PowerShell.ODataUtils Import-Module Microsoft.WSMan.Management Expected behavior Modules published for...
X Description: Steps to reproduce Import-Module AppxProvider Import-Module CimCmdlets Import-Module Microsoft.PowerShell.ODataUtils Import-Module Microsoft.WSMan.Management Expected behavior Modules published for...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1346
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some modules published for PowerShell core cannot be imported","articleBody":"## Steps to reproduce\n\nImport-Module AppxProvider\nImport-Module CimCmdlets\nImport-Module Microsoft.PowerShell.ODataUtils\nImport-Module Microsoft.WSMan.Management\n## Expected behavior\n\nModules published for PowerShell core should be able to be imported\n## Actual behavior\n\nImporting those 4 modules from the published 'Modules' folder fails\n\n```\n> Import-Module AppxProvider\nImport-Module : The module to process 'Microsoft.Windows.Appx.PackageManager.Commands', listed in field\n'ModuleToProcess/RootModule' of module manifest 'C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\Appx\\Appx.psd1'\nwas not processed because no valid module was found in any module directory.\nAt line:1 char:1\n+ Import-Module AppxProvider\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : ResourceUnavailable: (Appx:String) [Import-Module], PSInvalidOperationException\n + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand\n\n> Import-Module Microsoft.PowerShell.ODataUtils\nGet-WmiObject : The term 'Get-WmiObject' is not recognized as the name of a cmdlet, function, script file, or operable\nprogram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.\nAt C:\\users\\dongbow\\downloads\\ops\\Modules\\Microsoft.PowerShell.ODataUtils\\Microsoft.PowerShell.ODataUtils.psm1:5\nchar:27\n+ $ProcessorArchitecture = (Get-WmiObject -query \"Select Architecture f ...\n+ ~~~~~~~~~~~~~\n + CategoryInfo : ObjectNotFound: (Get-WmiObject:String) [], CommandNotFoundException\n + FullyQualifiedErrorId : CommandNotFoundException\n\n> Import-Module .\\Modules\\CimCmdlets\nImport-Module : Could not load file or assembly\n'C:\\Users\\dongbow\\Downloads\\ops\\Modules\\CimCmdlets\\Microsoft.Management.Infrastructure.CimCmdlets.dll' or one of its\ndependencies. The system cannot find the file specified.\nAt line:1 char:1\n+ Import-Module .\\Modules\\CimCmdlets\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : InvalidOperation: (:) [Import-Module], FileNotFoundException\n + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand\n\n> Import-Module .\\Modules\\Microsoft.WSMan.Management\nImport-Module : The module to process 'Microsoft.WSMan.Management.dll', listed in field 'NestedModules' of module\nmanifest 'C:\\Users\\dongbow\\Downloads\\ops\\Modules\\Microsoft.WSMan.Management\\Microsoft.WSMan.Management.psd1' was not\nprocessed because no valid module was found in any module directory.\nAt line:1 char:1\n+ Import-Module .\\Modules\\Microsoft.WSMan.Management\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : ResourceUnavailable: (Microsoft.WSMan.Management:String) [Import-Module], PSInvalidOpera\n tionException\n + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand\n```\n## Environment data\n\n\u003c!-- provide the output of $PSVersionTable -->\n\n``` powershell\n> $PSVersionTable\nName Value\n---- -----\nPSRemotingProtocolVersion 2.3\nCLRVersion\nSerializationVersion 1.1.0.1\nPSVersion 5.1.10032.0\nBuildVersion 3.0.0.0\nWSManStackVersion 3.0\nPSEdition Core\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nGitCommitId v0.6.0\n```\n","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2016-07-13T00:03:40Z","url":"https://github.com/PowerShell/PowerShell/issues/1346"}
| 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:46024081-d6b2-d91b-15bc-1a458dde11b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82EE:A126A:2BDBA2:3D4DA1:6AFD74AA |
| html-safe-nonce | a51af99d5078329b65ae4f317f2206d392464856b3f50d178ca341a43aef6d45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkVFOkExMjZBOjJCREJBMjozRDREQTE6NkFGRDc0QUEiLCJ2aXNpdG9yX2lkIjoiMzc2NjQ4MjE4OTE4MTM1MTA4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 927b290567d126b719d6b92e85278b4a29cd79d6e31c006f537de0e6eac04ac6 |
| hovercard-subject-tag | issue:165208469 |
| 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/1346/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f393752fbe2664ab232d0140c6da1f1385a9f68897c803572bf1bef2d0bbd992/PowerShell/PowerShell/issues/1346 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f393752fbe2664ab232d0140c6da1f1385a9f68897c803572bf1bef2d0bbd992/PowerShell/PowerShell/issues/1346 |
| og:image:alt | Steps to reproduce Import-Module AppxProvider Import-Module CimCmdlets Import-Module Microsoft.PowerShell.ODataUtils Import-Module Microsoft.WSMan.Management Expected behavior Modules published for... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | e54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032 |
| 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 | 5be0bf2b8cf26f8897d31e6bc3c232d328b12a54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width