Category: PowerShell

Export SharePoint user information list to CSV(Excel) file using PowerShell

Export SharePoint user information list to CSV(Excel) file using PowerShell

 1,464 total views,  36 views today

 1,464 total views,  36 views today In this tutorial, we will learn how we can export the SharePoint user information list to CSV or excel file using the PowerShell script in SharePoint Online/2013/2016/2019. Key Highlights How to export the user information list in SharePoint 2013/2016/2019 using the PowerShell script. How to export the user information list SharePoint

Continue reading

[Fixed] Server relative urls must start with SPWeb.ServerRelativeUrl”in reading web part properties!

[Fixed] Server relative urls must start with SPWeb.ServerRelativeUrl"in reading web part properties!

 1,421 total views,  36 views today

 1,421 total views,  36 views today Recently I was working on, to the get webpart properties details from the SharePoint site page using the PowerShell CSOM, then I got this error “Exception calling “ExecuteQuery” with “0” argument(s): “Server relative URLs must start with SPWeb.ServerRelativeUrl” in reading web part properties!:“. In this, SharePoint troubleshooting I will share how

Continue reading

[Verified] Get all webparts from pages in a site using PowerShell in SharePoint Online

[Verified] Get all webpart properties from SharePoint Online site page using the PowerShell script

 1,635 total views,  76 views today

 1,635 total views,  76 views today In this tutorial, I will share how we can get all webparts from pages in a site using PowerShell CSOM and get web part properties using PnP PowerShell.   Key Highlights Get all webparts from pages in a site using PowerShell CSOM and get web part properties using Powershell Retrieve webparts

Continue reading

Get document library inventory report in SharePoint using PowerShell script

Get document library inventory report in SharePoint using PowerShell script

 2,434 total views,  60 views today

 2,434 total views,  60 views today In this blog, I will share how we can get a document library inventory report in SharePoint using the PowerShell script and export this report into a CSV file. This script will scan through all documents libraries in a site collection and generate the list item details report in a CSV

Continue reading

[Solved] Fix the “The term ‘Get-SPWeb’ is not recognized as the name of a cmdlet, function” PowerShell error

[Solved] Fix the "The term 'Get-SPWeb' is not recognized as the name of a cmdlet, function" PowerShell error

 2,802 total views,  84 views today

 2,802 total views,  84 views today In this troubleshooting, I will share how to fix the “The term ‘Get-SPWeb’ is not recognized as the name of a cmdlet, function” PowerShell error. Many times, we may notice even though we pass the correct URL to the Get-SPWeb command as an Identity parameter, still, we could see the error

Continue reading

How to start SharePoint list workflow using PowerShell

How to start SharePoint list workflow using PowerShell automatically?

 1,578 total views,  24 views today

 1,578 total views,  24 views today In this blog, we will learn how to start the SharePoint list workflow using PowerShell script. Many times, due to the business reasons or technical problems we might need to start the SharePoint list workflow programmatically for all the list items. Key Highlights How to start the SharePoint list workflow using

Continue reading

In 2 steps convert a classic SharePoint page to modern using PnP

 9,010 total views,  78 views today

 9,010 total views,  78 views today   Over the many years we as a SharePoint professional, we have been using the SharePoint classic page both in SharePoint on-premise and SharePoint online(classic). But recently in the last couple of years, Microsoft has been focusing to convert the classic SharePoint to modern SharePoint. So in this article, we will

Continue reading

[Verified] Office 365: Retrieve hub sites and associated sites using PnP Powershell

 4,265 total views,  26 views today

 4,265 total views,  26 views today   In this article, we will learn about how to retrieve hub sites and associated sites using PnP Powershell and Office 365 admin center URL or SharePoint admin center URL. PnP PowerShell script to get all sites connected to a hub site: Using PnP PowerShell get all associated or connected sites

Continue reading

Office 365: Getting started with SharePoint PnP PowerShell – installation

 13,530 total views,  146 views today

 13,530 total views,  146 views today PnP PowerShell overview The SharePoint Patterns and Practices – short name PnP is a collection library which contains array of PowerShell commands – named as PnP PowerShell which allows us(SharePoint administrator or developer) to perform complex provisioning and artifact management actions in SharePoint. The PnP powershell is built on SharePoint CSOM

Continue reading

SharePoint Online: Delete All Files from document library for the given date – PowerShell CSOM

 3,665 total views,  52 views today

 3,665 total views,  52 views today   In this PowerShell script we will learn about how we can delete all files from all document library in SharePoint online site from a given date by passing From date and To date. The PowerShell script can be used in the below scenario: Delete specific files from SharePoint on-premises library

Continue reading