In this blog, we are going to retrieve all the webparts present in a modern site page. Also, we will see how to add different web parts and delete a web part from a modern site page using PnP PowerShell. First, we need to connect to the site. To perform the connection, add the following lines. $siteURL = Read-Host “Provide […]
Add, Remove, And Get All Web Parts From Modern Site Page Using PnP PowerShell
How To Enable And Disable MFA Using PowerShell
In Office 365, multifactor authentication (MFA) is a security feature in which it authenticates whether the user who tries to access the exchange online is the same user who claims the account. MFA use the user’s phone number or mobile app to connect the Office 365. Providing the steps below to enable MFA, Step 1 To run Office 365 to […]
Change Regional setting using PnP PowerShell
Introduction Changing Regional settings of a SharePoint Online site manually is straight forward but if someone needs to change the regional settings for all the sites then it will be a time-consuming procedure. So here I have tried to make the task a bit easier. I have made a PowerShell script to change the regional setting in the […]
Get,Add & Remove Navigation Using PnP-Powershell
Introduction : In this blog, I have discussed how to add, retrieve, and delete the SharePoint navigation menu using PowerShell. Follow the steps to get the result. Steps : 1. Get the Navigation Node 2. Add the Navigation 3. Remove/Delete the Navigation In this blog, added the coding of HubNavigation Menu but you can also Add, Retrieve and […]
Convert Classic pages to Modern pages using PNP Powershell Script
Introduction- Classic SharePoint sites have classic pages like wiki pages, web part pages, blog pages or publishing pages which cannot be used in modern user interfaces. But a classic site can host modern pages which enables a great end user experience. In this blog we are going to discuss about how to transform classic pages to modern page using PNP […]
Retrieve Recycle Bin Items Using Different Filters Condition & Restore Them Using PNP PowerShell
In this blog, we will learn how to get number of items present in recycle bin and apply different filter conditions on it. We will also see how to restore the items to its previous location. Steps: First we need to connect site. We can do this following below command Open SharePoint Online Management Shell as administrator and add Connect- […]
SharePoint Permission Tasks Using PnP PowerShell
In this blog, we are going to discuss about the SharePoint permission in different scenarios like how to assign & remove permission to a user, how to assign unique permission. Also, we will retrieve the users and the corresponding role associated with them. SharePoint Permission is used for assigning different types of roles/permission to different users. A user can perform […]
Copy Sites Page From One Site to Another Using PNP PowerShell
In this blog, we are going to discuss how to copy a modern page from one site collection to another site collection using PNP PowerShell. To successfully copy a modern page, you have to follow the below steps: PowerShell code Run the script PowerShell code Instruction: In this code, first we have to set the credential of the SharePoint. Then […]
Create Modern Page and Add Webpart to It Using PnP PowerShell
In this blog, we will discuss how we can create a modern site Page programmatically using PnP online. Then we will add a hero Webpart programmatically to it. To perform the procedure, we must follow the below steps. Step-1: – First, we have to open the windows PowerShell and then run the command “Connect-PnPOnline -Url providesiteUrl”. Then run ISE as […]
Retrieve, Add, Remove Fields from a SharePoint list using PNP PowerShell
In this blog, we are going to retrieve all fields from a list, add, remove a field from a SharePoint list using PnP PowerShell. First, we need to connect to the Site. First We Need to Connect to the Site. To Perform Connection Add $SiteUrl = Read-Host “Provide Site url” Connect-PnPOnline -Url $SiteUrl #Executing this line will ask for credentials. […]