How to Find the Process Locking a File Using PowerShell

You’re trying to delete or move a file, and Windows throws that frustrating “The file is in use by another process” error. You have no idea what’s holding it. Task Manager shows a dozen processes, and you’re left guessing. Sound familiar? Good news — PowerShell gives you several solid ways to track down exactly which … Read more

How to Get JSON Data from a URL in PowerShell (With Custom Headers)

Get JSON Data from a URL in PowerShell example GitHub API

If you’ve worked with modern APIs—even briefly—you already know that JSON is everywhere. Whether you’re integrating with Microsoft 365 services, pulling data from third-party APIs, or automating internal systems, you’ll almost always be dealing with JSON over HTTP. In my day-to-day work as a Microsoft 365 administrator and automation consultant, one of the most common … Read more

How to Check Password Expiration Date in PowerShell

If you’ve ever managed user accounts in Microsoft 365, Active Directory, or hybrid environments, you’ve probably run into this situation: I’ve been there more times than I’d like to admit. And almost every time, the quickest and most reliable way to investigate is PowerShell. In this tutorial, I’ll walk you through how to check password … Read more

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: Get Absolute Path of Directory

PowerShell Get Absolute Path of Directory

When working with PowerShell scripts, you often need to work with file and folder paths. For example, you might be writing a script that processes files inside a directory, copies files to another location, or logs information about specific folders. In many cases, scripts require the absolute path of a directory instead of a relative … 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 Install Winget Using PowerShell [Step-by-Step Guide]

You’re sitting at your computer, trying to install a bunch of programs, and you’re tired of clicking through endless setup wizards. You’ve heard about winget—Windows Package Manager—and how it can install apps with just one command. Sounds great, right? But here’s the problem: Winget might not be on your system yet. Or maybe it’s there … Read more

How to Get Dell Service Tag Using PowerShell (Complete Guide)

How to Get Dell Service Tag Using PowerShell

If you work in IT or manage Dell computers, you know how important service tags are. These unique identifiers help you track warranties, download drivers, and get support from Dell. But manually checking each machine? That’s a pain. Good news: PowerShell makes this super easy. In this tutorial, I’ll show you exactly how to grab … 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.