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

PowerShell Find All Files With Extension

PowerShell Find All Files With Extension

Ever found yourself needing to quickly list every .pdf or .xlsx file scattered across hundreds of folders on your Windows laptop? PowerShell helps find every file with a particular extension—no matter where it’s hiding. In this tutorial, I will explain how to find all files with extensions using PowerShell with examples. Method 1: Find All Files with a Specific Extension (Single Extension Search) … read more…

How to Find Files Older Than a Specific Date using PowerShell?

Find Files Older Than a Specific Date using PowerShell

Recently, one of my clients wanted to list down old files from a shared drive in their New York office. By using PowerShell, you can identify files older than any date you choose. In this tutorial, I will show you how to find files older than a specific date using PowerShell, along with some examples, such … read more…

10 Powerful PowerShell Select-String Examples

PowerShell Select-String Examples

As a PowerShell administrator, I mostly worked with the PowerShell Select-String cmdlet. So, I thought to show you 10 real examples of Select-String in PowerShell. Example 1: Basic Text Search in a File The most straightforward use of Select-String in PowerShell is to search for a specific text pattern in a file. This command searches … read more…

Concatenate String in Write-Host In PowerShell

powershell concatenate string in write-host

In this tutorial, I’ll walk you through multiple methods to concatenate strings in PowerShell’s Write-Host command, from the most basic approaches to advanced techniques. String concatenation in PowerShell, especially when using the Write-Host cmdlet, is something you’ll do almost daily if you’re writing scripts for system administration or automation tasks. As a PowerShell expert with … read more…

PowerShell Get-ItemProperty [with Examples]

PowerShell Get-ItemProperty

As a PowerShell administrator, I use the Get-ItemProperty cmdlet a lot. You can use this cmdlet to gather installed software information, access registry values, or retrieve file metadata, etc. In this tutorial, I will explain how to use Get-ItemProperty in PowerShell effectively with real-world examples that I’ve personally used throughout my decade-plus career with PowerShell. … read more…

String Starts With in PowerShell: Simple Methods That Works

powershell string starts with

Recently, I was working on a script where I needed to check if strings began with certain characters. There are various methods available to do this in PowerShell. In this article, I’ll explain various methods for checking if a string starts with specific characters in PowerShell. You can use these techniques in various scenarios, such … read more…

PowerShell Naming Conventions: Best Practices for Scripts and Modules

PowerShell Naming Conventions

When I first started writing PowerShell scripts over a decade ago, I quickly realized that consistent naming conventions make a huge difference in code readability and maintainability. Whether you’re writing a simple script or building complex modules, following proper naming standards helps you and your team work more efficiently. In this article, I’ll share the … read more…

PowerShell Variable Naming Conventions: Best Practices for Clean Code

PowerShell Variable Naming Convention

As a PowerShell developer, I’ve learned that following consistent variable naming conventions is crucial for writing clean, maintainable code. Over my years of PowerShell scripting, I’ve found that proper naming conventions make scripts more readable and easier to debug. In this article, I’ll share the best practices for PowerShell variable naming that I’ve developed through … read more…

How to Check if a Variable is Null or Empty in PowerShell?

powershell if variable is null or empty

While working on PowerShell scripts, you’ll often need to check if a variable contains data before performing operations on it. There are various methods for checking this. In this article, I’ll show you several methods to check if a PowerShell variable is null or empty. Let us check various approaches and see which one works … read more…