How to Extract URLs from XML Sitemap Using PowerShell (Step-by-Step)

Extract URLs from XML Sitemap Using PowerShell

I recently had a requirement where I needed to extract only SharePoint-related URLs from a large XML sitemap file. The sitemap contained thousands of URLs, and manually filtering them was not practical at all. I specifically wanted to identify URLs that included keywords like “sharepoint” or “share-point” so I could use them for further analysis … Read more

Access to the Path Is Denied – PowerShell Remove-Item (Fixed)

Access to the Path Is Denied PowerShell

Trying to delete a file or folder using PowerShell’s Remove-Item command, only to see the “Access to the path is denied” error, can be incredibly frustrating. In many cases, the command itself is perfectly correct, but PowerShell still refuses to remove the item. This error usually happens because of permission restrictions, locked files, hidden system … Read more

PowerShell Convert HTML to Plain Text (4 Methods with Examples)

PowerShell Convert HTML to Plain Text

If you’ve ever pulled data from a web page or processed an email body in PowerShell, you’ve probably ended up with a string full of <p>, <br>, <div>, and a dozen other HTML tags cluttering your output. All you wanted was the readable text underneath all that markup. That’s exactly what this tutorial covers — how to strip … Read more

How to Convert XML to Table in PowerShell (4 Easy Methods)

Convert XML to Table in PowerShell

If you’ve ever had to deal with an XML file and needed to make sense of its data quickly, you probably know how messy it can look at first glance. Nested tags, attributes everywhere, and no clear rows or columns. The good news? PowerShell makes it surprisingly easy to pull that data out and display … Read more

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

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

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

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