How to use PnP PowerShell in Windows 7 or Windows 8 machine

Ahamed Fazil Buhari
 
Senior Developer
July 1, 2018
 
Rate this article
 
Views
4508

Hi,

If you are not using windows 10 and still you want to use PnP PowerShell then you are at the right place. Follow the below steps and install whatever is necessary to make your PnP PowerShell work in your Windows 7 or 8 system.

Here I am using Windows 7 and I opened my Window PowerShell as an administrator.

If you want to keep track on everything you do on your PowerShell then run the below script

clip_image002

We need to update PowerShell version to 5.0 or latest (to check your existing version then type $PSVersionTable and hit enter)

clip_image003

Step 1: Check your Execution Policy by running Get-ExecutionPolicy and if it is not RemoteSigned, then run the below script to set it as RemoteSigned

Set-ExecutionPolicy RemoteSigned

clip_image005

Step 2: Download Windows Management Framework 5.1 from Microsoft site, the link is given below

https://www.microsoft.com/en-us/download/details.aspx?id=54616 and choose you download according based on your OS

clip_image007

clip_image009

Step 3: Once the file is downloaded, install the .msu file (Close all existing PowerShell window). Reboot the system after installation is completed.

clip_image011

After system reboot, open you PowerShell and check for the version ($PSVersionTable) you can notice it as v5.1

clip_image013

Now you are good to go for PnP PowerShell commands in your Windows 7 or 8 OS.

Happy Coding

Ahamed

Author Info

Ahamed Fazil Buhari
 
Senior Developer
 
Rate this article
 
Ahamed is a Senior Developer and he has very good experience in the field of Microsoft Technologies, especially SharePoint, Azure, M365, SPFx, .NET and client side scripting - JavaScript, TypeScript, ...read more
 

Leave a comment