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

Reference Variables in PowerShell

powershell reference variable

Are you looking to learn how to manipulate variables more dynamically in PowerShell? The answer is the PowerShell reference variables. I’ve used this many times as a PowerShell developer with years of experience. Let me explain how to use reference variables in PowerShell with some examples. What Are PowerShell Reference Variables? In PowerShell, variables typically … read more…

PowerShell Array of Strings

PowerShell Array of Strings

As a PowerShell developer with years of experience, I’ve found that arrays are one of the most powerful data structures available in PowerShell. In this tutorial, I’ll explain everything you need to know about working with arrays of strings in PowerShell with examples. What is a PowerShell Array? An array is a data structure that … read more…

PowerShell Array – Complete Tutorial

powershell array

I have been working with PowerShell for the last 12 – 15 years. One thing I use frequently is arrays in PowerShell. As a PowerShell developer, you should know about PowerShell arrays. In this tutorial, I will explain the PowerShell array, including its definition, syntax, examples, and more. Arrays in PowerShell are powerful data structures … read more…

PowerShell Get-Date Format [Various Examples]

PowerShell Get-Date Format yyyymmdd

Do you want to know how to format a date while working with PowerShell Get-Date? Here, I will show you how to use PowerShell Get-Date format to retrieve the current date and time, and format it in various ways. In this tutorial, we’ll explore how to use PowerShell Get-Date to format dates in different patterns, … read more…

PowerShell Get-Date Minus 1 Day

PowerShell Get-Date Minus 1 Day

In this tutorial, I will explain how to subtract one day from a date using PowerShell. Sometimes, you need to calculate the previous day’s date in your PowerShell scripts, such as generating reports or automating tasks. I recently faced this issue while creating a script to analyze daily sales data for a client in the … read more…

PowerShell Where-Object [With Examples]

PowerShell Where-Object

I will explain a very useful cmdlet in PowerShell: PowerShell Where-Object in this tutorial. This command lets users filter and select specific items from a set of data. Let us understand with some examples. The Where-Object cmdlet picks out objects with certain property values from a group of objects. It’s like a sieve that catches only … read more…

How to Use PowerShell Get-Date Cmdlet?

PowerShell Get-Date Cmdlet

In this tutorial, I will explain how to use the PowerShell Get-Date cmdlet to work with dates and times in your scripts. The Get-Date cmdlet allows you to retrieve the current date and time, format dates, and perform date calculations. As a system administrator or a developer, you should know how to use Get-Date in … read more…

How to Rename Folders to Uppercase or Lowercase Using PowerShell?

powershell rename folder to uppercase

As an IT professional working for a client in the United States, I recently encountered a situation where I needed to standardize the naming convention of folders across multiple directories. PowerShell is perfect for this. In this tutorial, I will explain how to use PowerShell to rename folders to uppercase or lowercase. Now, let me … read more…

How to Rename Multiple Files Using PowerShell?

Rename Multiple Files Using PowerShell

Recently, I got a requirement to rename numerous report files in a project. PowerShell script is the best option for it. In this tutorial, I will explain how to rename multiple files using PowerShell. Rename Multiple Files Using PowerShell Recently, I was working on a project for a client in New York City. They had … read more…

How to Check if a File Exists and Rename it Using PowerShell?

Check if a File Exists and Rename it Using PowerShell

Recently, I was working on a project for a client in New York where I needed to automate the process of checking for the existence of specific files and renaming them according to a predefined naming convention. You can do this easily with PowerShell scripts. In this tutorial, I will explain how to use PowerShell … read more…

How to Use PowerShell Global Variables?

powershell global variable

As a PowerShell developer, I often got scenarios where using global variables can greatly simplify code and make it more maintainable. In this tutorial, I will explain how to create and use PowerShell global variables with examples. PowerShell Variable Scope Before understanding a global variable in PowerShell, let me explain the concept of variable scope … read more…

How to Replace Carriage Returns in Strings Using PowerShell?

Replace Carriage Returns in Strings Using PowerShell

There will be times when you want to replace carriage returns in strings using PowerShell. In this tutorial, we will learn how to replace carriage returns in strings using PowerShell. To replace a string containing a carriage return in PowerShell, use the -replace operator with the carriage return escape sequence `r. For example, $string -replace “r”, “replacement text”will replace … read more…

How to Download a File from URL Using PowerShell?

Download a File from a URL Using PowerShell

One of my team members recently searched for a PowerShell script to download files from a URL. I suggested different methods to achieve this. In this tutorial, I will explain how to download a file from a URL using PowerShell. Download a File from a URL Using PowerShell There are multiple ways to download files … read more…