Skip to main content

Volume Space Sampling

Summary

The Predictive Volume Exhaustion Monitor Creation script generates the monitor set. It utilizes the Get-VolumeExhaustionEstimate agnostic script to assess and return an estimation of the number of days remaining before the drive space is entirely occupied, utilizing the trend data/samples gathered. The parameters for the script are configured according to the system properties detailed in the script's documentation.

The data returned by the monitor set is displayed by the Volume Exhaustion Estimations [Remote Monitor] dataview.

Dependencies

Monitor

Status

Status

Location

Location

Alerting

Alerting

Configuration

Configuration

Executable/Arguments:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "$WarningPreference = 'SilentlyContinue'; [Net.ServicePointManager]::SecurityProtocol = [enum]::ToObject([Net.SecurityProtocolType], 3072); $ProjectName = 'Get-VolumeExhaustionEstimate'; $WorkingDirectory = \"C:\ProgramData\_Automation\Script\$ProjectName\"; $scriptpath = \"$($WorkingDirectory)\$($ProjectName).ps1\"; $scripturl = 'https://file.provaltech.com/repo/script/Get-VolumeExhaustionEstimate.ps1'; if (!(Test-Path $WorkingDirectory)) {mkdir $WorkingDirectory | Out-Null}; (New-Object System.Net.WebClient).DownloadFile($scripturl,$scriptpath); $op = & $scriptpath -MinimumSamples 30 -Path $WorkingDirectory -DaysToReport 14 -DaysToLead 7 -Quiet -Force; $exDate = ($op | Where-Object { $_.DriveLetter -eq 'C' }).ExhaustionEstimationDate; if ($exDate) { ($exdate).ToString('yyyy-MM-dd HH:mm:ss') }"

The parameter values highlighted in the provided example are regulated by the system properties and the Extra Data Fields (EDFs).