OneDrive for Business: Restore All Files and Folder from Recycle Bin using PowerShell

Requirement: Restore all deleted files and folders from OneDrive for business using PowerShell. PowerShell to Restore All Deleted Items in OneDrive for Business OneDrive for business stores all deleted items in the Recycle Bin. If you accidentally delete an item, you can restore the item from the Recycle Bin. Recovering deleted items…

Read more

How to Reset OneDrive for Business Sync Client?

Requirement: Reset OneDrive for Business sync client app. How to Reset OneDrive for Business? OneDrive for Business is an enterprise cloud storage and sync service from Microsoft. It lets you store your files online, share them with others, and work on them together. The OneDrive for Business sync client makes it easy…

Read more

SharePoint Online: How to Update Links in Word Documents using PowerShell?

Requirement: Update links in word documents in a SharePoint Online document library. PowerShell to Update Hyperlinks in Microsoft Word Documents In a migration project, We had to replace all links embedded in Microsoft Word documents stored in SharePoint Online document libraries. Opening each document and updating the old links with newer ones…

Read more

Fix: “Connect-SPOService: No valid OAuth 2.0 authentication session exists” Error

Problem: When trying to connect to SharePoint Online through PowerShell 7, got this error message “Connect-SPOService: No valid OAuth 2.0 authentication session exists”. Solution: Use the “-UseWindowsPowerShell” switch to import the PowerShell Module for SharePoint Online, when you use PowerShell 7! Import-Module Microsoft.Online.SharePoint.PowerShell -UseWindowsPowerShell

Read more

Install-Module : Administrator rights are required to install modules in ‘C:\Program files\WindowsPowerShell\Modules’.

Problem: When trying to install a PowerShell module, got an error message “Install-Module: Administrator rights are required to install modules in ‘C:\Program Files\WindowsPowershell\Modules’ Log on to the computer with an account that has Administrator rights, and then try again, or install ” by adding “-Scope Current User” to your command. You can…

Read more

PowerShell: How to Remove Duplicates from Array?

PowerShell is a powerful scripting language that is widely used in the IT industry to automate tasks. It is a command-line shell and scripting language that is built on top of the .NET framework. One of the most common tasks professionals perform in PowerShell is working with arrays. Arrays are a collection…

Read more

SharePoint Online: How to show all sites a user has access to?

Requirement: Display a list of all SharePoint Online sites a user has access to. How do I view all sites I have access to in SharePoint Online? In SharePoint Online, you may have noticed that there’s no easy way to view all the sites you have access to. Although the SharePoint start…

Read more

SharePoint Online: How to Create Alert for Other Users?

Requirement: Set alerts for other users in SharePoint Online. How to set up alerts for other users in SharePoint Online? Alerts in SharePoint allow you to keep track of changes and activity within your site, so it is a valuable tool to have when collaborating with others. If you’ve been using SharePoint…

Read more

How to disable “Return to Classic SharePoint” in SharePoint Online?

In modern SharePoint Online sites, You’ll find the link “Return to Classic SharePoint” in the bottom-left corner below quick launch – for backward compatibility. On clicking, the link reverts the current list or library to classic mode. Similarly, On the classic UI, there’s a corresponding link, “Exit classic experience.” Looking to remove…

Read more

SharePoint Online: How to Add a Document Library to Site Navigation?

Requirement: Add a Document Library to quick launch navigation in SharePoint Online. How do I add a document library to Quick Launch or Top Navigation? Are you looking for a way to add document libraries to your SharePoint Online site navigation? Well, This article provides an easy-to-follow guide on how to add…

Read more