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 will automatically become the primary site collection admin. A SharePoint…

Read more

SharePoint Online: Update List Items using PowerShell

Requirement: SharePoint Online PowerShell to Edit List Item PowerShell CSOM Script to update List Items in SharePoint Online: Here is the example for SharePoint Online PowerShell to update list item. This updates the Item with ID: 1 for the given list. You can also use $ListItem.SystemUpdate() method to preserve metadata like last…

Read more

SharePoint Online: Delete a Site Collection using PowerShell

Requirement: Delete a SharePoint Online Site Collection using PowerShell. How to a Delete a Site Collection in SharePoint Online? SharePoint Online site collection is a collection of one or more sites that are grouped under the common URL and typically share a common navigation, branding, features, security, etc. When you no longer…

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: Enable-SPFeature cmdlet to activate/enable features. In SharePoint online there is no such cmdlet available through PowerShell to activate feature. But we can utilize Client Side Object Model (CSOM) to activate feature in SharePoint online. Lets…

Read more

SharePoint Online: PowerShell to Create a List

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, products. When you create…

Read more

SharePoint Online: Add New List Item using PowerShell

When working with SharePoint Online, had a requirement to add new list items to a list from PowerShell script. Here is my example: SharePoint Online: PowerShell to Add List Item To add a list item using PowerShell, we’ve to set value for each custom column in the list. Here is the SharePoint…

Read more

Create a Scheduled Task for PowerShell Script with Windows Task Scheduler

Requirement: Schedule PowerShell Script in Windows Task Scheduler. PowerShell is really a game-changer for repeatable processes, isn’t it? We have a PowerShell script to generate a report on SharePoint content databases size growth SharePoint Content Databases Size – Storage Report, We used to run it on the first day of every month…

Read more