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

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 Move a File to a Folder in PowerShell

Move a file to a folder in PowerShell

To move a file to a folder in PowerShell, use Move-Item with the file in -Path and the folder in -Destination. The file keeps its name and disappears from the original folder: Output: That’s the whole job when everything is where you expect. The rest of this guide covers the cases that go wrong. I … Read more