# Reporting disk usage over time?

**URL:** <https://forums.powershell.org/t/reporting-disk-usage-over-time/5134>\
**Category:** PowerShell Help\
**Created:** [October 29, 2015, 9:05pm UTC](https://forums.powershell.org/t/reporting-disk-usage-over-time/5134 "2015-10-29T21:05:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![divvytown](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@divvytown](https://forums.powershell.org/u/divvytown)\
**Post date:** [October 29, 2015, 9:05pm UTC](https://forums.powershell.org/t/reporting-disk-usage-over-time/5134/1 "2015-10-29T21:05:18Z")

</div>

Hi,

I have two PowerShell scripts that combines ADUC cmdlets and robocopy to create a PSObject that contains information about all my user and also the size of the homedirectory folder. I can export this as a CSV to get a nice and readable report, but I would like to be able to track changes to disk usage over time. Are there any good approaches to run this as a scheduled task every week, so i can have the folder size for the last 6 months?

I would just like to point out i haven’t written all the code in here, but I cant recall where i found everything… (and the git link contains 2 scripts since i could only post 1 link)

> <https://gist.github.com/anonymous/8b7ad2b8d882591c5384>

---

<div class="post-metadata">

**Author:** ![richard-siddaway](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@richard-siddaway](https://forums.powershell.org/u/richard-siddaway)\
**Post date:** [October 29, 2015, 9:16pm UTC](https://forums.powershell.org/t/reporting-disk-usage-over-time/5134/2 "2015-10-29T21:16:53Z")

</div>

Run it as a scheduled task or scheduled job. Do you want to explicitly report on all home drives or just the largest group or if they are over a certain size? Decide your criteria and then pull that information from the CSV files and create a trend report. There’s a free ebook from this site that shows how to do that

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:44pm UTC](https://forums.powershell.org/t/reporting-disk-usage-over-time/5134/3 "2024-05-16T20:44:32Z")

</div>

Closed on May 16, 2024, 8:44pm UTC


