question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Best Practices Module does not work with PowerShell 7 Preview

See original GitHub issue

The BestPractices module does not load in PowerShell 7. It also does not load using WIndows Compatibility module.

Steps to reproduce

Import-Module -Name BestPractices
# or
Import-WinModule -Name BestPractices

Expected behaviour

I would have expected one or the other to have worked.

Actual behavior

Both fail.

Environment data

PS [C:\foo> ]> $PSVersionTable

Name Value


PSVersion 7.0.0-preview.3 PSEdition Core GitCommitId 7.0.0-preview.3 OS Microsoft Windows 10.0.18980 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0-preview.3} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
iSazonovcommented, Sep 16, 2019

It is standard module in Windows Server. It is not marked as PowerShell Core compatible. Please report in https://github.com/PowerShell/WindowsCompatibility repository.

<div> GitHub</div><div>PowerShell/WindowsCompatibility</div><div>Module that allows Windows PowerShell Modules to be used from PSCore6 - PowerShell/WindowsCompatibility</div>
0reactions
iSazonovcommented, Sep 18, 2019

@doctordns Your report is not in right repo. If you want the module works with WIndows Compatibility module please report in https://github.com/PowerShell/WindowsCompatibility.

Also MSFT team has https://github.com/PowerShell/PowerShellModuleCoverage to track Windows PowerShell module compatibility.

I wonder you ask again because you already reported there. Sorry if I misled you.

<div> GitHub</div><div>PowerShell/WindowsCompatibility</div><div>Module that allows Windows PowerShell Modules to be used from PSCore6 - PowerShell/WindowsCompatibility</div>
<div> GitHub</div><div>PowerShell/PowerShellModuleCoverage</div><div>Track issues related to using Windows PowerShell modules with PowerShell Core 6 - PowerShell/PowerShellModuleCoverage</div>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from Windows PowerShell 5.1 to PowerShell 7
PowerShell 7 works side-by-side with Windows PowerShell letting you easily test and compare between editions before deployment. Migration is ...
Read more >
MSOnline not working in PowerShell 7
The problem appears when I try using Connect-MsolService on PowerShell 7.1.1 I get an error saying the cmdlet does not exist, but when...
Read more >
PowerShell 7 Preview 3
If you have issues with a Microsoft PowerShell module, please open an issue in the PowerShellModuleCoverage repository!
Read more >
Differences between Windows PowerShell 5.1 and ...
This article summarizes the differences and breaking changes from Windows PowerShell 5.1 and the current version of PowerShell that is based ...
Read more >
What's New in PowerShell 7.3
In this release, Windows APIs were updated or removed for compliance, which means that PowerShell 7.3 doesn't run on Windows 7.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found