Get disk space warnings through PowerShell
![]() |
| Credits Susan NYC |
- Clears the content of D:\lowdisk.txt.
- Adds required headers to D:\lowdisk.txt.
- Checks through all drives if free disk space is less than specified threshold.
- If a disk has free space less than threshold then adds info to D:\lowdisk.txt.
- Mails to users the contents of the D:\lowdisk.txt if any disk is having free space less than threshold.
Following is the code for the script. You can schedule it using windows scheduler.

Make money by filling online surveys
Comments