SharePoint Online: Create a Folder using PowerShell

Create a Folder in SharePoint Online Document LibraryFolders are used to organize files in SharePoint, similar to what we do on our computers. You can add a folder to SharePoint online list or library by following the below steps. How to Create a Folder in SharePoint Online? Folders can be created in…

Read more

SharePoint Online: Add Content Type to List or Library using PowerShell

Requirement: SharePoint Online PowerShell to add content type to library. How to add content type to a list or library in SharePoint Online? Assuming you have the content type already created, here are the steps to add content type to list in SharePoint online: Step 1: Enable content types management for the…

Read more

SharePoint Online: Grant Permission to List or Library using PowerShell

Grant access to lists, libraries, and individual items in SharePoint Online: There are times you may want to grant permissions at the list or library level to users and groups in SharePoint online. Say for e.g. You may want to provide read access at site level and edit rights on individual list…

Read more

Copy Files Between Document Libraries in SharePoint using PowerShell

Requirement: Copy Files between SharePoint Document Libraries using PowerShell PowerShell Script to Copy a File from One Library to Another: Here is my PowerShell script to copy files between SharePoint document libraries: PowerShell Script to Copy All Files Between Document Libraries: Let’s copy all files and folder from one library to another…

Read more

SharePoint Online: Enable Content Types using PowerShell

As the name suggests, Content type defines type of the content such as item or document. In a real world scenario, A content type could refer to a invoice template or project plan document, etc. Content types provide a effective method of grouping relevant columns (metadata), document template, workflows and policies together…

Read more

SharePoint Online: Find All Large Lists and Generate Report using PowerShell

SharePoint online uses the hard limit of 5000 items as its list view threshold. So, we need to keep an eye on large lists in our SharePoint online environment. Here is the PowerShell script to scan and get all lists which are exceeding 5000 items limit on given SharePoint online site collection….

Read more

SharePoint Online: Delete All List Items using PowerShell

Requirement: Delete All Items from SharePoint Online List using PowerShell We have a list in SharePoint Online – Office 365 site with a bunch of items. Need them to be deleted in bulk rather than deleting one by one from SharePoint web UI. So, let us use SharePoint Online PowerShell to delete…

Read more

How to Delete a List in SharePoint Online using CSOM-PowerShell?

Requirement: Delete a list in SharePoint Online using PowerShell. Important: Make sure, you have SharePoint Online client run time installed on the client machine before proceeding. Download it from here: https://www.microsoft.com/en-us/download/details.aspx?id=42038 PowerShell Script to delete a List in SharePoint Online: Run it in PowerShell ISE: You can use this PowerShell to delete…

Read more