Forum Navigation
You need to log in to create posts and topics.

Export folder files and sizes - CSV file

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.