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

How to Convert Seconds to Minutes in PowerShell

Convert Seconds to Minutes in PowerShell

If you’ve ever worked with time-based data in PowerShell, you already know how often values come in as raw seconds. Whether it’s script execution time, API response duration, or system performance logs, seconds are useful—but not always the most readable format. At some point, I found myself constantly needing to convert those seconds into a … Read more

How to Convert Seconds to Hours and Minutes in PowerShell

Convert Seconds to Hours and Minutes powershell

If you’ve ever worked with logs, timers, or performance data in PowerShell, you’ve probably come across time values in seconds that aren’t very human-friendly. Reading something like “7265 seconds” doesn’t immediately tell you much unless you stop and calculate it mentally. In this post, we’ll make that easier by learning how to convert seconds into … Read more

Cannot Convert Value to Type System.String Error in PowerShell [Fixes]

cannot convert value to type system.string powershell

The error “Cannot convert value to type System.String” (or its close variant “Cannot convert ‘System.Object[]’ to the type ‘System.String’”) is one of the most frequently encountered PowerShell errors. It appears when a parameter typed as [string] receives something it can’t accept — typically an array, a null value, or a complex object. In this tutorial, I will explain the root … Read more

PowerShell Cannot Convert Value to Type System.Int32 — Fix Guide

powershell cannot convert value to type system_int32 error

The error “Cannot convert value to type System.Int32” is one of the most common type errors in PowerShell. It occurs when PowerShell tries to cast or assign a value as an integer, but the value contains non-numeric characters, is too large, is null, or is in the wrong format entirely. In this tutorial, I will explain the … Read more

Convert Scientific Notation to Decimal using PowerShell

Convert Scientific Notation to Decimal using PowerShell

If you’ve ever exported data from a database, pulled performance metrics, or opened a CSV file — only to find numbers that look like 1.23E+04 or 5.73e+02 — you already know how annoying scientific notation can be. It’s compact, sure, but try doing any real work with it and you’ll hit a wall fast. In this tutorial, I’ll walk … 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

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

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