Problem
The purpose of this tool is to create a CSV representing all of the files and size of a certain folder (including sub-folders). When run, it will prompt the user to select a folder. The output will be a .csv file in the desktop named "FileSize-Current-Date-And-Time.csv".
Solution
First enable script execution policy. run power shell with admin privileges and execute this command
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Download the file attached
rename the file to Export-FileandDirsSize.ps1
right click on the file and choose run with powershell
Note
The output size is in Mb.
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →