Install SharePointPnP.PowerShell on your computer


Summary:


This solution contains a library of PowerShell commands that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use a combination of CSOM and REST behind the scenes, and can work against both SharePoint Online as SharePoint On-Premises.
Applies to: SharePoint Online, SharePoint 2016, SharePoint 2013
Installation
There are 3 ways to install the cmdlets. We recommend, where possible, to install them from the PowerShell Gallery.  Alternatively, you can download the setup files or run a PowerShell script to download the PowerShellGet module and install the cmdlets subsequently.
PowerShell Gallery
If you main OS is Windows 10, or if you have PowerShellGet installed, you can run the following commands to install the PowerShell cmdlets:
SharePoint VersionCommand to install
SharePoint OnlineInstall-Module SharePointPnPPowerShellOnline
SharePoint 2016Install-Module SharePointPnPPowerShell2016
SharePoint 2013Install-Module SharePointPnPPowerShell2013

Updating
Every month a new release will be made available of the PnP PowerShell Cmdlets. If you earlier installed the cmdlets using the setup file, simply download the latest version and run the setup. This will update your existing installation.
If you have installed the cmdlets using PowerShellGet with Install-Module from the PowerShell Gallery then you will be able to use the following command to install the latest updated version:
Update-Module SharePointPnPPowerShell*
This will automatically load the module after starting PowerShell 3.0.
You can check the installed PnP-PowerShell versions with the following command:
Get-Module SharePointPnPPowerShell* -ListAvailable| Select-Object Name,Version| Sort-Object Version -Descending

Comments

Post a Comment