SharePoint Online: Get All Lists and Libraries using PowerShell

Are you looking for a way to get an inventory of all lists and libraries in your SharePoint Online site? This can be helpful for auditing or simply getting an overview of what is on your site. In this article, we’ll show you how to use PowerShell to get detailed information about…

Read more

SharePoint Online: Add Site Collection Administrator using PowerShell

Requirement: Add Site Collection Administrator in SharePoint Online. Site Collection Administrator in SharePoint Online SharePoint site collection administrators have full access rights to manage all sites under a site collection. When creating a site collection, a Global Administrator or SharePoint Online Administrator specifies the primary site collection administrator for the site. Unlike…

Read more

How to Show a Status Message in SharePoint 2013/2016?

Requirement: After the launch of the new SharePoint intranet portal, we wanted to display a status message on each page. Solution: Here is the script to display a status message using the SharePoint JavaScript client-side object model. And the result of the SharePoint 2013 status message: This script can be used in…

Read more

SharePoint Online: Update List Items using PowerShell

Requirement: SharePoint Online PowerShell to Edit List Item. Update List Items in SharePoint Online using PowerShell CSOM Script If you want to update a list item in SharePoint Online, but don’t want to go through the web user interface every time – as updates happen frequently, and are time-consuming, There is a…

Read more

Upload Files to SharePoint Library Remotely using Client-Side Object Model (CSOM) and PowerShell

Requirement: Upload files to a SharePoint document library remotely. PowerShell Script to Upload a File to SharePoint Library using Client Object Model: We can upload files to SharePoint Online or SharePoint on-premises document libraries remotely using PowerShell and the client-side object model (CSOM). Important: Make sure you have SharePoint 2013 Client Components…

Read more

How to Delete a SharePoint Site in Microsoft 365: Step-by-Step Guide

SharePoint Online site collection is a collection of sites grouped under a common URL and typically share a common navigation, branding, features, security, etc. When it comes to managing content in SharePoint Online, you may, at some point, need to delete a site when you no longer need it. E.g., a Project…

Read more

How to Connect to SharePoint Online from PowerShell?

I know I said it several times, but I’ll say it again: I Love PowerShell! PowerShell is a Microsoft administrative task automation and configuration management framework that allows you to administer Microsoft products, including SharePoint Online. PowerShell makes repetitive tasks easier and makes our life smarter, and it helps to automate complex…

Read more

SharePoint Online: Activate a Feature using PowerShell

Requirement: Activate a feature in SharePoint Online site collection using PowerShell. Solution: In SharePoint On-Premises, We use the Enable-SPFeature cmdlet to activate/enable features. In SharePoint Online, there is no such cmdlet available through PowerShell to activate the feature. But we can utilize the Client-Side Object Model (CSOM) to activate features in SharePoint…

Read more

SharePoint Online: Create a List using PowerShell

Requirement: Create a List in SharePoint Online using PowerShell. How to Create a List in SharePoint Online? SharePoint Online Lists are used to store structured data like you store data in an Excel spreadsheet or a database table. E.g., You can create lists to track tasks, contacts, projects, and products. When you…

Read more

SharePoint Online: Add New List Item using PowerShell

Requirement: When working with SharePoint Online, I had a requirement to add new list items to a list from the PowerShell script. This blog post will cover how to create a list item in SharePoint Online using PowerShell, with some examples. How to add an item to a List in SharePoint Online?…

Read more