How to Convert XML to Excel Using PowerShell

Convert XML to Excel Using PowerShell

Last month, our monitoring vendor started dropping daily inventory exports as XML files onto a file share. Finance wanted them in Excel. For two weeks, someone on my team opened each file, copied nodes by hand, and pasted them into a workbook. It took an hour a day, and the numbers were wrong twice. I … Read more

How to Convert PDF to Word Using PowerShell?

Convert PDF to Word Using PowerShell

Last month, our HR team dumped 240 scanned policy PDFs on my desk. They needed each one as an editable Word document so they could update the 2026 wording. Opening each file by hand in Word would have eaten a full week. I wrote a short script instead. It finished in about twenty minutes while … Read more

How to Convert PNG to ICO Using PowerShell

Convert PNG to ICO Using PowerShell

I have lost count of how many times I have needed a favicon at short notice and ended up on some random online converter, uploading a company logo I probably shouldn’t be handing to a stranger’s server. It works, but it always feels wrong. The confusing part is that Windows has no built-in ICO cmdlet. … Read more

Windows Terminal vs PowerShell: Which One to Use

Windows Terminal vs PowerShell

I’ve seen this confusion come up a lot in real admin work. Someone opens Windows Terminal, types a PowerShell command, and then assumes both tools are the same thing. They are not the same, and that difference matters when you build scripts, run admin tasks, or set up a better workflow. Once you understand it, … Read more

How to Get Folder Size in PowerShell (Including Subfolders)

Get folder size in PowerShell

To get a folder’s size in PowerShell, list every file under it with Get-ChildItem -Recurse and add up their Length values with Measure-Object. The result is in bytes, so divide by 1MB or 1GB: Output: A folder doesn’t store its own size, so PowerShell has to add up the files, just like the Properties window … Read more

Convert Canonical Name to Distinguished Name in PowerShell

Learn how to convert a canonical name to a distinguished name in PowerShell with a practical AD-focused script and clear examples. This guide shows the exact logic, common pitfalls, and a safe way to verify the result. I’ve had to do this when scripts received paths in canonical format, but Active Directory commands needed the … Read more

How to Run PowerShell as a Different User (3 Ways)

Run PowerShell as a different user

To run PowerShell as a different user, start a new PowerShell process with the other account’s credentials. The quickest way is Start-Process with Get-Credential, which asks for the password in a secure prompt: Below I check who you’re running as now, show every way to switch accounts, and explain how this differs from Run as … Read more

How to Convert JPG to PDF Using PowerShell (4 Methods)

If you’ve ever needed to convert a bunch of JPG images into PDF files without clicking through some online tool or installing bloated software, PowerShell is your best friend. It’s already on your Windows machine, it’s scriptable, and once you set it up — you can convert one file or a thousand with the same … Read more

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