PnP.PowerShell 3.1.0 released

Hi All,
End of March the PnP.PowerShell Team annouced the V3 release
Three days ago, the Pnp.PowerShell was released to the PowerShell Gallery.
They increased the required PowerShell Version from 7.2 to 7.4.6.
- PowerShell Gallery PnP.PowerShell 3.1.0


I am using the new PSResourceGet here instead of the PowerShellGet commands.
Show installed Versions and what’s available in PowerShell Gallery
Get-InstalledPSResource -Name PnP.PowerShell -Scope CurrentUser
Find-PSResource -Name PnP.PowerShell


Uninstall the old Module
Uninstall-PSResource -Name PnP.PowerShell -Scope CurrentUser


In the last Months i’ve noticed that uninstalling some Modules seems to have Problems. Might be it’s related to the CurrentUser Scope that is redirected to OneDrive. Anyone else seeing this?
I’ve updated the M365PSProfile PowerShell Module and the Uninstall-M365Module Function with the Parameter -FileMode. It will delete the Module Folder of that Module.
Install-PSResource -Name M365PSProfile -Scope CurrentUser
Import-Module M365PSProfile
Uninstall-M365Module -Modules PnP.PowerShell -Scope CurrentUser -FileMode


Install the new PnP.PowerShell Module
Install-PSResource -Name PnP.PowerShell -Scope CurrentUser
Get-InstalledPSResource -Name PnP.PowerShell -Scope CurrentUser


I have blogged about how to Register the Entra ID App for PnP.PowerShell
Connect with App and Certificate and some basic tests
Connect-PnPOnline -Url "https://icewolfch.sharepoint.com/sites/DemoTemplate/" -ApplicationId "7bc9048b-ba56-4fe0-9b52-ba8f8a6e18a6" -Tenant "icewolfch.onmicrosoft.com" -Thumbprint "55ebadf1a14df8e088ef985730a8cfb01749400c"
Get-PnPContext
Get-PnPFolder -Url "Freigegebene Dokumente/Project/Script"
Get-PnPFileVersion -Url "Freigegebene Dokumente/Project/Script/AADUsers.csv"
Disconnect-PnPOnline


Regards
Andres Bohren

PowerShell Logo


SharePoint Logo
