Script to check the drive space in the server against the threshold value and triggers an alert

Script to check Disk Space #Purpose: Script to check the drive space in the server against the threshold value and triggers an alert#powershell script for disk space monitoring $computer = get-content -path .list.txt #get-content env:computername; #Get the server name$percentWarning = 50; # Store the percentage warning threshold$disks = Get-WmiObject -ComputerName $computer -Class Win32_LogicalDisk -Filter “DriveType … Read more