SharePoint Online: PowerShell to Loop through List Items

Requirement: SharePoint Online PowerShell to Loop through List Items. Make sure you have SharePoint Online Client SDK downloaded and installed in your machine before running the script: https://www.microsoft.com/en-us/download/details.aspx?id=42038 PowerShell to Loop through List Items in SharePoint Online As an administrator of SharePoint Online, there may be times when you need to loop…

Read more

SharePoint Online: Create a List Item based on a Specific Content Type

Requirement: Add list item with specific content type in SharePoint Online. How to Add a New List Item of a specific content type in SharePoint Online? Say we have a customized content type, “Business Contacts” for the contacts list and want to add a new item of the given content type. To…

Read more

SharePoint Online: Get All List Items with Unique Permissions using PowerShell

Requirement: Get All SharePoint Online List Items with Unique Permissions using PowerShell. How to check if a list Item has Unique permissions or inheriting permissions from the parent? To get if a SharePoint Online list Item or File in a document library has unique permissions, follow these steps: SharePoint Online: PowerShell to…

Read more

SharePoint Online: Get List Items from Folder using PowerShell

Requirement: Get all list items from a folder in SharePoint Online. SharePoint Online: PowerShell to Get List Items in a Folder Getting all items from the SharePoint list folder is a common requirement when working with client-side object model scripts. In this blog post, we will look at how you can use…

Read more

SharePoint Online: Copy List Items from One List to Another using PowerShell

Requirement: Copy List items to another list in SharePoint Online. How to copy list items to another list in SharePoint Online? Do you need to copy list items from one list to another? Perhaps you need to migrate data from an old list to a new one. Or maybe you just need…

Read more

SharePoint Online: How to Break Permission Inheritance using PowerShell?

Requirement: Grant permissions at list or library level to users and groups in SharePoint Online. The particular user group has read access at the site level, and the requirement is to provide edit access rights on specified lists and libraries. Break permission inheritance in SharePoint Online: When you provide permissions at the…

Read more

SharePoint Online: Delete Unique Permissions for All Items in a List using PowerShell

Requirement: Reset all customized permissions in all documents of a SharePoint Online document library. By default, Permissions are inherited from their parents in all levels of SharePoint. E.g., Subsites inherit permissions from their parent site collection (or parent site), lists and libraries inherit permissions from the site, and items in the list…

Read more

SharePoint Online: Delete a List Item using PowerShell

Requirement: Delete a List Item in SharePoint Online using PowerShell. In this blog post, we’ll show you how to use PowerShell to delete a list item from your SharePoint Online list. We’ll share some PowerShell examples to delete a list item by ID, delete a list item by Title, and delete list…

Read more

Compare SharePoint List Items using PowerShell

Requirement: We’ve two task lists with hundreds of rows in them. I wanted to compare these two SharePoint Lists and extract the difference from both of them. Solution: Let’s use the PowerShell script to compare and extract the difference between SharePoint lists! Output: Here, the InputObject column gives the difference. The SideIndicator…

Read more

SharePoint Online: Get All List Items using PowerShell Script

Requirement: SharePoint Online PowerShell to Get List Items. SharePoint Online: PowerShell to Get All List Items PowerShell is a powerful scripting language that can be used to automate tasks. In this blog post, we will show you how to use PowerShell to query items in a SharePoint Online list. We will be…

Read more