RUN AS LOCALSYSTEM USER
NOTES:
- give the drives in the variable "drive". for example: if you want to check for the space for C: drive and D: drive, give it like this - drive = ["C:", "D:"]
- give the threshold space in the variable "threshold". for example: if you want the script to alert when the drive space of C: and D: is below 10GB and 500MB then give it like this in the variable - threshold = ["10GB", "500MB"]
- the drive space in the "threshold" variable should be in the same order corresponding to the drives names in the "drive" variable. you can only give GB, MB AND KB AND IT SHOULD BE IN THE UPPER CASE LIKE - threshold = ["100GB", "500MB", "200KB"]
this script has been scanned with virustotal.com and xcitium verdict cloud.
PYTHON SCRIPT FILE SHA1 VALUE - c7bbbe991b6be4271b8dc4774d083223fe76ea86
JSON FILE SHA1 VALUE - 509c92ce2821db32d1b50feebcb60cac9b0eec58
Comments