Use PnP PowerShell cmdlets (SharePoint / Office 365) with PowerShell Version 7.x & Visual Studio Code
If you want to use the PnP PowerShell cmdlets for Microsoft 365 environments and products such as SharePoint Online, Microsoft Teams, Microsoft Planner, Microsoft Flow and more you need to install at least Windows PowerShell Version 7.2. The standard PowerShell version on Windows systems is version 5.1. This version is not longer being developed and the version can only be used with Windows operating systems. The 5.1 version based on .NET Framework 4.5. The new PowerShell generation starting with version 6.0 based on .NET Core 2.0. This means that PowerShell version 5.1 and 6.0 is completely independent. Features like the Windows PowerShell Integrated Scripting Environment (ISE) is no longer compatible with the new version 😒. For various compatibility reasons, also the following modules are no longer included in the new PowerShell: Microsoft.PowerShell.LocalAccounts Microsoft.PowerShell.ODataUtils Microsoft.PowerShell.Operation.Validation PSScheduledJob PSWorkflow PSWorkflowUtilit...