I was working to find a way to monitor disk space on servers. The solution is simple.
Go to one of your servers and open a PowerShell console as an administrator and type :
Now you can run the below attached scripts, but you need to customize some settings inside the script under the first section
Then you can run the script from a Power Shell window, or you can schedule it using Task Scheduler and it will send you couple of emails with nice reports.
Below is the script… I couldn’t upload the script in PS1 format, so i had to past it in a word document
- You can set different thresholds for C drives and data drives
- You can set warning threshold and error thresholds
- Email notification
- You can customize the script to report certain logical drives