PowerShell to Check if Folder Exists

Requirement: Check if a folder exists in PowerShell. How to check if a folder exists in PowerShell? In PowerShell, checking if a folder exists is a very common task. You may need to check if a folder exists before performing actions, such as creating a new folder, deleting a folder, renaming a…

Read more

Get User Effective Permissions in SharePoint Online using PowerShell

Requirement: Get effective permissions granted to a user on a SharePoint Online site using PowerShell. PowerShell to Get User’s Effective Permissions in SharePoint Online Here is how to use the “GetUserEffectivePermissions” method to retrieve all effective permissions a specific user has on a given SharePoint site. This script gets all permissions, such…

Read more

How to renew a Client Secret in SharePoint Online using PowerShell?

Requirement: Renew a client secret in SharePoint Online. How to Extend the Validity of a Client Secret in SharePoint Online? A client secret is an important part of the authentication process for a SharePoint Online app. It is used to grant the app access to SharePoint resources and verify its identity. In…

Read more

PowerShell Array: All You Need to Know!

Arrays are a fundamental data structure in PowerShell that allows storing collections of objects and values. Learning to efficiently create, manipulate, and iterate arrays unlocks more advanced scripting capabilities. In this post, I will provide a comprehensive overview of using arrays in PowerShell. Whether you are coming from another programming language or…

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 use PowerShell to Delete a File?

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

Site Assets Library missing in SharePoint Online? Here is the fix!

Problem: Site Assets Library missing in SharePoint Online. How to Create Site Assets Library in SharePoint Online? The site assets library usually stores images, logos, audio-video, CSS, and JS files, and it gets created automatically when you start customizing your site. E.g., changing the site logo, uploading an image for the Hero…

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