SharePoint Online: Update Created By / Modified By, Created / Modified Field Values using PowerShell

Requirement: Update ‘Created By’ column in SharePoint Online using PowerShell. At times, you may have to create list items or set existing item’s metadata fields such as Created by, Modified by, Created at, Modified values to a specific user – time stamp. Say, You are importing or migrating data from a network…

Read more

SharePoint Online: PowerShell to Send Email

We can send emails from SharePoint online, either with SPUtility’s SendEmail function or with PowerShell cmdlet Send-MailMessage. Here are examples in both the cases: PowerShell to Send Email in SharePoint Online: Here is how to send an E-mail from SharePoint Online using PowerShell Client Side Object Model (CSOM) script. This sends Email…

Read more

Copy Group Membership Permissions of a User in SharePoint using PowerShell

Requirement: Copy SharePoint Group Memberships of one user to another user Solution: You can copy group memberships of one user to another user to have identical SharePoint Permissions for a SharePoint Site. Here is the PowerShell Script: PowerShell Script to Copy Group Memberships from One user to another: Alternatively, to add a…

Read more

SharePoint Online: How to Change Site Logo using PowerShell?

Requirement: Change Logo in SharePoint Online site. How to change Logo in SharePoint Online? Changing the logo is a common requirement when it comes to branding SharePoint Online sites, and it can be achieved in a few clicks. To add a logo to SharePoint Online, follow these steps: Log in as a…

Read more

SharePoint Online: Add Currency Column to List using PowerShell

Requirement: Add Currency Column to SharePoint Online List How to Create Currency Field in SharePoint Online List? Similar to the number field, The Currency column in SharePoint Online is used to capture currency values as metadata and adds currency formatting options. Browse to your SharePoint Online site and navigate to the target…

Read more

SharePoint Online: How to a Get List in PowerShell?

Requirement: SharePoint Online PowerShell to Get List. SharePoint Online: Get List from PowerShell Here is the PowerShell to Get SharePoint Online List This script gets the given list and the number of items from the list. To get all lists in SharePoint Online site using PowerShell, use: SharePoint Online PowerShell to Get…

Read more

Import-Module: The specified module ‘Microsoft.Online.SharePoint.Powershell’ was not loaded because no valid module file was found in any module directory.

Problem: When trying to add the PowerShell module for SharePoint online, using “Import-Module Microsoft.Online.SharePoint.PowerShell”, it resulted in the below error in both PowerShell console and in PowerShell ISE. “Import-Module : The specified module ‘Microsoft.Online.SharePoint.Powershell’ was not loaded because no valid module file was found in any module directory.” Solution:  Make sure you…

Read more

SharePoint Online: Create Permission Level using PowerShell

Requirement: Create a new permission level in SharePoint online site collection for contribute without delete permissions. SharePoint Online Permission Levels: SharePoint Permission levels are a set of actions users can perform in SharePoint, packaged as a group to make permission management easier. So, Instead of providing individual permissions to users and groups, you…

Read more

SharePoint Online: PowerShell to Create a Document Library

Requirement: Create a Document Library in SharePoint Online using PowerShell. Create Document Library using PowerShell in SharePoint Online: The document library is the most commonly used type of library in SharePoint Online used to store and collaborate Office documents such as Word, Excel, PowerPoint, etc. SharePoint Online document libraries come with default…

Read more