PowerShell SharePoint PnP: Installing SharePoint PNP PowerShell

Open Windows Powershell as Administrator.

Run the following

Install-Module SharepointPNPPowershellOnline

Type A when prompted.

To verify the version installed type the following:

Get-Module SharePointPnPPowerShell* -ListAvailable | Select-Object Name,Version | Sort-Object Version -Descending

Type the following to connect to your SharePoint Online Environment replacing <YourTenant> with your Tenancy alias, e.g alanlearnsstuff12345

Connect-PnPOnline –Url https://<YourTenant>.sharepoint.com –Credentials (Get-Credential)

Note: This command can fail with an error message mentioning DTD is prohibited on this XML document. There can be many causes, (see this link) but the usual fix is to change the DNS settings to use 8.8.8.8 in some cases.

Enter your Admin Credentials when prompted.

Type Get-Command -Module *PnP* or Get-Command -Module *PnP* | Select -First 5, as I have and verify a list of commands return.

Now a browse at this page will get you on your way: PnP PowerShell overview

Alan

Related Post

PowerShell Office 365: SMTP Email Sent with PowerS... In this example, I have an extremely simple function called MyCode. The purpose of the function is only to demonstrate us taking any PowerShell output...
PowerShell SharePoint: Installing SharePoint Onlin... Once upon a time there was a need to download an MSI and to install the SharePoint PowerShell Module that way, however, as all useful and trusted modu...
Powershell Office 365: Building a Hash Table and a... Here is a script that will quickly tell you some mailbox information and some mailbox statistics for an Exchange Online such as Office 365 mailbox. Th...