How to Rename a File in PowerShell?

Requirement: Rename a file using PowerShell. PowerShell to Rename a File Renaming files is one of the common tasks that system administrators and developers perform. PowerShell provides a set of cmdlets for managing files, including renaming them. The Rename-Item cmdlet is used to rename files and folders in PowerShell. Renaming files can…

Read more

SharePoint Online: Grant Site Owner Permission to a User with PowerShell

Requirement: Grant Site Owner Permissions to a User in SharePoint Online. How to Grant Site Owner Permissions to a User in SharePoint Online? By adding people to the SharePoint Online site owners group, they can manage the site and perform typical site administration activities such as setting site branding and structure, adding…

Read more

SharePoint Online: Get File Size using PowerShell

Requirement: Get file size in SharePoint Online using PowerShell. How to Get the File Size in SharePoint Online? Have you ever needed to get the size of a file in SharePoint Online? Maybe you need to know how much storage space is occupied by a file in your SharePoint Online document library….

Read more

SharePoint Online: How to Get a List using PowerShell?

Requirement: PowerShell to Get a List in SharePoint Online. SharePoint Online: PowerShell to Get a List PowerShell is a powerful scripting language that can be used to automate tasks and manage your SharePoint Online environment. This guide will show you how to use PowerShell to get a list in SharePoint Online. Here…

Read more

How to Add Twitter Feed in SharePoint Online?

Requirement: Add the Twitter feed to SharePoint Online pages. How to Add Twitter Feed to SharePoint Online? You may want to add Twitter feeds relevant to your audience on your SharePoint Online site. Integrating a Twitter feed into SharePoint Online can be a great way to keep users informed about the latest…

Read more

How to use PowerShell “Contains” – A Quick Guide!

The Contains method in PowerShell can be used to check if a specified string or character exists within a string and the PowerShell operator Contains allows you to check if a collection of objects, such as an array, contains a specific value. It returns a Boolean value, either $true if the string…

Read more

Fix “There was an error while attempting to get the themes” Error in SharePoint Online

Problem: When trying to change the site theme in SharePoint Online through “Settings >> Change the Look >> Theme,” I got an error message “There was an error while attempting to get the themes”. Workaround: You may encounter this issue when you make multiple changes to the site’s look and feel, like…

Read more

How to Embed Excel Spreadsheet to Modern SharePoint Online Pages?

Requirement: Display Excel Spreadsheet in SharePoint Online. SharePoint Online: How to Embed an Excel Spreadsheet? We don’t have Excel Web Access Web Part in modern SharePoint Online sites that integrate an Excel sheet into SharePoint pages. However, we can use the Embed web part to display an Excel spreadsheet in SharePoint Online:…

Read more

SharePoint Online: Link to Force Download a Document Instead of Open

Requirement: Force download a file instead of opening it in SharePoint Online. SharePoint Online: URL to Document Download Instead of Open Documents (Word/Excel/PowerPoint files/PDF file types) linked in SharePoint Online pages, navigation menu, lists, etc., open in the browser (or in client application!) directly either in Read-only mode or in Edit mode,…

Read more

SharePoint Online: How to Register a Never Expiring App ID Secret with Azure AD?

Requirement: Register a never-expiring App for SharePoint Online using Azure AD. Any App ID (or Client ID) registered through SharePoint Online has an expiry date of 1 year by default. How do I register an App ID client secret that’s never expiring? Well, You have to register the App through Azure AD!…

Read more