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

How to Find Passwords in Files with PowerShell?

Let’s be honest: people still store passwords in plain text files. I’ve seen it countless times — a “passwords.txt” sitting on someone’s desktop, a Word doc named “Important Logins.docx,” or configuration files with hardcoded credentials. It’s a security nightmare waiting to happen. But you can use PowerShell to scan directories quickly and identify potential security … Read more

How to Find a Folder by Name in PowerShell?

Find a Folder by Name in PowerShell

If you’re a Windows administrator, DevOps engineer, or IT professional, you’ve probably needed to locate a folder buried deep within a directory structure. Manually doing this is really tough. So, you can use PowerShell for this. In this tutorial, you’ll learn how to find a folder by name using PowerShell, step‑by‑step with real examples. The … Read more

PowerShell Get-ChildItem Files Only [with Practical Examples]

PowerShell Get-ChildItem Files Only

As a PowerShell expert with over a decade of experience, I’ve seen countless scenarios where administrators need to retrieve only files from directories while excluding folders. When working with file system operations, you’ll often need to list files only without including directories in your results. You can do this using the Get-ChlidItem PowerShell cmdlet. In … Read more

PowerShell Get-ChildItem Filter Examples

PowerShell Get-ChildItem Filter Examples

If you’ve ever needed to list, search, or filter files and folders in Windows PowerShell, you’ve probably used the Get-ChildItem cmdlet — often abbreviated as gci. This PowerShell command is useful for navigating the file system, filtering files by extension, size, and date, and even using wildcards or regular expressions. In this tutorial, we’ll explore … Read more

How to Convert HEIC to JPG using PowerShell

If you’ve ever tried to open your iPhone photos on a Windows PC, you might’ve encountered that mysterious .heic extension. It is not always easy to work with outside the Apple ecosystem. If you are looking for an easy way to convert those HEIC files to the more universally friendly JPG format, you’ve come to the right … Read more

How to Convert JSON to XML using PowerShell?

Convert JSON to XML using PowerShell

JSON (JavaScript Object Notation) and XML (eXtensible Markup Language) are two widely used data formats in modern IT environments. However, we often need to convert JSON files to XML files using PowerShell. This tutorial explains how to convert JSON to XML using PowerShell, and I will cover step-by-step instructions, practical examples, and common mistakes that … Read more

How to Test If a File Exists in PowerShell?

Test If a File Exists in PowerShell

I got a requirement to test if a file exists in PowerShell. In fact, this is a very common requirement among administrators. This tutorial covers various methods to test if a file exists in PowerShell with practical examples. Checking for a file’s existence before performing operations like reading, writing, copying, or deleting helps avoid runtime … 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.