PowerShell Find Folders Matching Pattern: Complete Tutorial

powershell finding folders combining multiple pattern conditions

PowerShell provides several powerful methods to search for directories based on naming conventions, wildcards, and regular expressions. In this tutorial, I will walk you through multiple approaches to find folders matching patterns in PowerShell. Basics of Pattern Matching in PowerShell Before diving into folder searches, it’s essential to understand how PowerShell handles pattern matching. PowerShell … Read more

PowerShell Output to File and Console [With Examples]

PowerShell Output to File and Console

When working with PowerShell scripts, you often need to see the output on the screen while also saving the results to a file. For example, imagine you are running a script to collect system information, event logs, or device details from multiple computers. While testing the script, you may want to view the output in … Read more

How to Get Free Disk Space Using PowerShell (Complete Guide)

powershell get disk space remote computer

Let me show you how to check free disk space using PowerShell. This is something I do almost daily, and it’s way more useful than clicking through Windows Explorer when you need to monitor multiple drives or servers. Here are the reasons why we use PowerShell to check disk space. Now let’s get into the … Read more

How to Convert Excel Files to CSV Using PowerShell (The Easy Way)

Convert Excel Files to CSV Using PowerShell

You know that moment when you need to convert dozens of Excel files to CSV format, and you’re thinking, “Great, I’ll be clicking ‘Save As’ for the next hour”? Yeah, I’ve been there too. Maybe you’re a data analyst who needs to feed CSV files into a database. Or perhaps you’re working with legacy systems … Read more

How to Convert TXT to CSV with PowerShell?

Convert TXT to CSV with PowerShell

Have you ever been handed a text file full of data—maybe a log file, an export from some legacy system, or just a simple list—and thought, “I wish this was in Excel or a proper spreadsheet format”? PowerShell provides powerful built‑in cmdlets for parsing, transforming, and exporting data efficiently. In this tutorial, you will learn … Read more

PowerShell Find File by Name Wildcard Examples

PowerShell Find File by Name Wildcard

PowerShell provides powerful file search capabilities using wildcard patterns and cmdlets. In this tutorial, I will explain how to find files by name wildcard in PowerShell with examples. You will learn multiple methods to locate files using pattern matching in PowerShell. What Are Wildcards? Before we dive in, let’s understand wildcards: Examples: Method 1: Using … Read more

How to Find the Most Recent File in a Directory with PowerShell?

Find the Most Recent File in a Directory with PowerShell

One of my clients recently asked for a PowerShell script to find the most recent file in a directory. This might be something like grabbing the latest log file for troubleshooting, finding the most recent backup before running a script, or locating today’s report. In this tutorial, I’ll walk you through three different methods for … Read more

How to Find Public Folder Paths in PowerShell?

While working with Exchange public folders, I was required to find public folder paths. Most Exchange PowerShell cmdlets require the complete folder path in the -Identity parameter. In this tutorial, I will show several efficient ways to find public folder paths quickly using PowerShell. I will also explain how to search for folders by name … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.