Microsoft technology nuggets

Short nuggets (notes to self) from my experience working with Microsoft technologies

Tuesday 9th March 2021

Monday 15th March 2021

To execute, I had to run this command I got from this article in my powershell

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

This Stackoverflow thread also explains how to run a .ps1 script but instead of running these 2 commands,

powershell.exe -File C:\Script.ps1 -ExecutionPolicy BypassSet-ExecutionPolicy

I used this

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

After pressing enter (it may be better to just do this before pressing enter), it may ask you to run the following command,

Install-Module SharePointPnPPowerShellOnline

You have to run in powershell in an elevated state/run as administrator (before opening power shell, right click and run as administrator).

Accept the questions ( like you have a choice, lol, unless of course you’d prefer to not go ahead with it).

Now, when you press enter, after installing SharePoint PnP Powershell Online, you will be prompted to login.

If you have MFA (Multi Factor Authentication) enabled on your account, this guide can help you : Using MFA enabled accounts in PowerShell scripts — Octavie van Haaften. Use the windows credential option.



Your thoughts make you

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store