Title: Windows Server Best Practices module does load properly in PowerShell 7 P6 · Issue #11202 · PowerShell/PowerShell · GitHub
Open Graph Title: Windows Server Best Practices module does load properly in PowerShell 7 P6 · Issue #11202 · PowerShell/PowerShell
X Title: Windows Server Best Practices module does load properly in PowerShell 7 P6 · Issue #11202 · PowerShell/PowerShell
Description: The BestPractices module can, apparently, be loaded using Import-Module (In P6). Using -Verbose shows the module at least partly loading. But no commands are available and Get-BPAModule does not run. In earlier preview versions of PowerS...
Open Graph Description: The BestPractices module can, apparently, be loaded using Import-Module (In P6). Using -Verbose shows the module at least partly loading. But no commands are available and Get-BPAModule does not ru...
X Description: The BestPractices module can, apparently, be loaded using Import-Module (In P6). Using -Verbose shows the module at least partly loading. But no commands are available and Get-BPAModule does not ru...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows Server Best Practices module does load properly in PowerShell 7 P6","articleBody":"The BestPractices module can, apparently, be loaded using Import-Module (In P6). Using -Verbose shows the module at least partly loading. But no commands are available and Get-BPAModule does not run.\r\n\r\nIn earlier preview versions of PowerShell 7, This module did NOT load using Import-module OR using the earlier Import-WinModule. Now the module seems to load but is not available. And there are not any error/warning messages to guide the IT Pro. If anything, this is WORSE than the behaviour of using the older PSWIndowsCompatibility module.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n# Import the BestPracticesmodule\r\nImport-module BestPractices # produces no error\r\nGet-Module # Produces no output\r\nImport-module BestPractices -Verbose\r\nVERBOSE: Loading module from path 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\BestPractices\\BestPractices.psd1'.\r\nVERBOSE: Loading 'TypesToProcess' from path 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\BestPractices\\Microsoft.BestPractices.Types.ps1xml'.\r\nVERBOSE: Loading 'FormatsToProcess' from path 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\BestPractices\\Microsoft.BestPractices.Cmdlets.Formats.ps1xml'.\r\n# Test it out\r\nGet-BPAModel # produces no output (and no errors!)\r\n```\r\n\r\n# Expected behaviour\r\n\r\nThe expected behaviour is that **Get-BPAModel** returns the BPA models available.\r\n\r\n# Actual behaviour\r\n\r\nNo error messages and Get-BPAModel returns no output (or errors).\r\n\r\n# Environment data\r\n\r\n```none\r\nPS C:\\Windows\\System32> $PSVersionTable\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.17763\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\n","author":{"url":"https://github.com/doctordns","@type":"Person","name":"doctordns"},"datePublished":"2019-11-26T20:32:17Z","url":"https://github.com/PowerShell/PowerShell/issues/11202"}
| 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:4a8f28e2-3992-31ca-b2ba-eb72a5eadeaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA2E:F27CE:2781F49:36FE13E:6AFD49F3 |
| html-safe-nonce | 2f46ece3c4fb7678b3dbd650813ca0e9b832e8cfc400653a7647823d930a5569 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTJFOkYyN0NFOjI3ODFGNDk6MzZGRTEzRTo2QUZENDlGMyIsInZpc2l0b3JfaWQiOiI3NDM0OTgwMjM4MjE3MjY3Njk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3ba1e0cc391bef8ce6a5419cdfafbb73bb22d81f463348ceaa48dcaf1a7c13a3 |
| hovercard-subject-tag | issue:528956763 |
| 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/11202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1814af10648ccb1178dcbddfe24b3d78b59033974008a4680a5356239b70016/PowerShell/PowerShell/issues/11202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1814af10648ccb1178dcbddfe24b3d78b59033974008a4680a5356239b70016/PowerShell/PowerShell/issues/11202 |
| og:image:alt | The BestPractices module can, apparently, be loaded using Import-Module (In P6). Using -Verbose shows the module at least partly loading. But no commands are available and Get-BPAModule does not ru... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | doctordns |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width