This is a very simple but helpful script that I created for our organization. The vbs file enclosed is configured to write WSH events to the Windows Event Log if it detects available drive space on a local disk drive to be lower than 20%. If the drive space is lower than 20% it will write a warning event with event ID 2 under source WSH to the Windows event log. If the drive space is lower than 10% it will write an error event with event ID 1 under source WSH to the Windows Event Log. You will have to customize the detailed message in the vbs file for your organization. Our organization has email alerts generated to a ConnectWise board once these event IDs are detected.
Hope this is helpful,
Mark A. Villareal
Streamline Networks - http://www.streamlinenet.com/