PnP.PowerShell 2.7 released

PnP.PowerShell 2.7 released

Hi All,

Note: PnP.PowerShell 2.7.0 has been pulled back by the Authors

Yesterday a new Version of PnP.PowerShell has been released to the PowerShell Gallery.

A Release on GitHub has not yet shown up

I am using the new PSResourceGet here instead of the PowerShellGet commands.

To check what version is installed and what’s available from the PowerShell Gallery use the following Commands

Get-InstalledPSResource PnP.PowerShell -Scope CurrentUser
Find-PSResource PnP.PowerShell

Uninstall the old version of the PowerShell Module and install the new one

Uninstall-PSResource PnP.PowerShell -Scope CurrentUser
Install-PSResource PnP.PowerShell -Scope CurrentUser
Get-InstalledPSResource PnP.PowerShell -Scope CurrentUser

Note: PNP.PowerShell does not work in PowerShell 5.x anymore

Works fine in PowerShell 7.x

New: You have to use the -LaunchBrowser Parameter to Authenticate

Connect-PnPOnline -Url "https://icewolfch.sharepoint.com/sites/DemoTemplate/" -Interactive -LaunchBrowser

Some basic tests

Get-PnPContext
Get-PnPFolder -Url "Freigegebene Dokumente/Project/Script"
Get-PnPFileVersion -Url "Freigegebene Dokumente/Project/Script/AADUsers.csv"
Disconnect-PnPOnline 

Or you can simply use my M365PSProfile Module - find the Documentation here: https://github.com/fabrisodotps1/M365PSProfile/

Install-PSResource -Name M365PSProfile
Add-M365PSProfile
Install-M365Module

Regards
Andres Bohren

PowerShell Logo