Live Developer Training starts 5 October 2026. Seats are limited.Live training starts 5 OctReserve your seat →Reserve →

How to Compare Dates in PowerShell?

powershell compare dates

Recently, to analyze a log, I was required to compare two dates in PowerShell. PowerShell provides powerful built-in cmdlets and operators that make comparing dates easy. In this tutorial, I will show you how to compare dates in PowerShell. Let me show you different methods with practical examples. Compare Dates Using PowerShell Comparison Operators PowerShell … read more…

How to Check If a Date Is Older Than 30 Days in PowerShell?

powershell if date is older than 30 days

In this tutorial, I will explain how to check if a date is older than 30 days using PowerShell. Recently, I helped my team troubleshoot an issue where we needed to identify files in a directory created more than 30 days ago to archive them. Let me explain how we fixed it. PowerShell If Date … read more…

PowerShell Copy-Item with Folder Structure

PowerShell Copy-Item with Folder Structure

In this tutorial, I will explain how to use PowerShell’s Copy-Item cmdlet to copy files and folders while maintaining their original structure. This is a common task for system administrators and developers who need to manage file systems efficiently. You will learn here how to use the PowerShell Copy-Item cmdlet to efficiently copy files and … read more…

Get-ChildItem Sort By Date in PowerShell

get-childitem sort by date

As an IT administrator, I recently needed to find the most recent log files in a directory to troubleshoot an issue. Using the Get-ChildItem cmdlet combined with the Sort-Object cmdlet, I quickly sorted the files by date and identified the relevant logs. In this tutorial, I will explain how to use the Get-ChildItem cmdlet in … read more…

PowerShell Copy-Item Cmdlet to Copy Files and Folders

powershell copy-item

The PowerShell Copy-Item is a useful cmdlet that allows you to copy files and folders. In this tutorial, I will explain how to use the PowerShell Copy-Item cmdlet to copy files and folders efficiently with some examples. PowerShell Copy-Item PowerShell Copy-Item is used to copy files and directories from one location to another. Whether you … read more…

How to Get File Size Using PowerShell?

powershell get file size

In this tutorial, I will explain how to get file sizes using PowerShell. As an IT professional working in the United States, I recently faced a challenge where I needed to determine the sizes of various files across multiple directories quickly. In PowerShell, it is easy to do. Let me explain how. PowerShell Get File … read more…

PowerShell ArrayList [Create and Use]

powershell arraylist

In this tutorial, I will explain how to create and use PowerShell ArrayList with some examples for efficient data management. As a PowerShell developer or administrator when you start using ArrayList over an Array, it will improve your script’s performance. I will also show the difference between an array and an ArrayList. What is a … read more…

How to Get the Last Modified Date of a File in PowerShell?

powershell get file modified date

In this tutorial, I will explain how to get file modified date in PowerShell. As an IT administrator for a USA-based company, I recently faced a situation where I needed to find out when a specific file was last modified. It is easy in PowerShell, let me show you how. PowerShell Get File Modified Date … read more…

How to Loop Through an Array in PowerShell?

powershell loop through array

In this tutorial, I will explain how to loop through an array in PowerShell. As a PowerShell user, you’ll often encounter situations where you need to iterate through an array to perform operations on each element. I will show you different methods to loop through array in PowerShell. To loop through an array in PowerShell, … read more…

Install PnP PowerShell for SharePoint Online

install pnp module sharepoint online

As a SharePoint developer, you should know how to work with PnP PowerShell to connect to SharePoint Online. You need to follow certain steps to install PnP PowerShell module to work with SharePoint Online sites. The steps are as follows: Introduction to PnP PowerShell Patterns and Practices(PnP) are a set of 700 commands the PowerShell … read more…

How to Create and Delete SharePoint Document Library Using PowerShell?

create document library in sharepoint online using powershell

While taking SharePoint lists/libraries as a data source for Power Apps applications with PnP PowerShell cmdlets, we create or delete the SharePoint lists/libraries quickly. It avoids mistakes and saves time. In this article, I will explain how to create and delete SharePoint document library using PowerShell. NOTE: Make sure you have registered an Application in … read more…

SharePoint List Items CRUD Operations Using PnP PowerShell

SharePoint List Items CRUD Operations Using PnP PowerShell

Recently, I was working on a Power Apps leave management app where we wanted to create a few SharePoint Online lists. Before deploying this Power Apps application on the client machine, we need to create all these lists on SharePoint Online sites. I used PnP PowerShell to create all these SharePoint list items. After doing … read more…

How to Create SharePoint List & Add Columns Using PnP PowerShell?

create sharepoint list column using powershell

Recently, I developed one Power Apps application that needed a SharePoint list data source. Before running the application, the client must create the specific SharePoint list on their site. So, I wrote a Power Shell script to create the SharePoint list along columns to avoid mistakes when creating it manually. This script will first check … read more…