OneDrive for Business: How to Restore Deleted Files or Folders?

Requirement: Restore deleted files from OneDrive for Business site. Restore deleted files in OneDrive for Business Microsoft’s OneDrive is a cloud storage service that allows users to save and share files online. When you delete a file or folder in OneDrive for Business, it’s not gone forever. Instead, deleted items are moved…

Read more

SharePoint Online: Bulk Create Dummy Files using PowerShell

Requirement: For a testing exercise, We had to bulk upload 5000+ documents to a document library in SharePoint Online. PnP PowerShell to Create Dummy Files in Bulk in SharePoint Online This PowerShell script bulk uploads the given file with unique names to the root folder of a specified SharePoint Online document library….

Read more

SharePoint Online: How to Grant Permissions to a Document?

Requirement: Share a document in SharePoint Online. Permissions are hierarchical in SharePoint Online, from the Top-level Site collection to the file level. When documents are created in the libraries, they inherit the permissions of that library by default. However, This inheritance can be broken, and permissions can be applied directly to the…

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

SharePoint Online: How to Share and Password Protect Files?

Can You password protect a Document or Excel file in SharePoint Online? Yes! You can share, and password-protect a document in SharePoint Online so that when the link is reshared with someone else, They can’t open the document without a password. Prerequisites: The external sharing setting must be set to “Anyone”. How…

Read more

SharePoint Online: How to See Who has viewed a File?

Requirement: See who has viewed a document in SharePoint Online. How to see who viewed a document in SharePoint? Can we see who has viewed a file in SharePoint or OneDrive? Yes! We can track who has viewed a file in SharePoint Online with this nifty feature, “SharePoint Viewers”. To see who…

Read more

Delete All Files Older than x Days using PowerShell

Requirement: Automatically Delete Files Older than x Days using PowerShell. How to Delete Older Files using PowerShell? Deleting unnecessary files is important for keeping your computer and storage running smoothly. But manually deleting these files can be time-consuming, especially if you have a large number of files to go through. Fortunately, the…

Read more

How to Delete a File with Remove-Item in PowerShell?

Deleting files is a regular task for computer users, but it can be tedious if you need to delete multiple files or from multiple folders. Fortunately, there’s an easy way to delete files in bulk using PowerShell. In this tutorial, we’ll show you how to use PowerShell to delete files quickly and…

Read more

Open a Document in Browser instead of Client Application in SharePoint Online

Requirement: Open documents in the browser in SharePoint Online. How to Force Documents open in Browser instead of the Client Application? By default, most document types (e.g., Word, Excel, PowerPoint) are set to open in the client application (e.g., Microsoft Word) when you click on them in SharePoint Online. However, you can…

Read more