Skip to main content

Predictive Volume Exhaustion Monitor Creation

Summary

The script is designed to set up the Volume Space Prediction Remote Monitor for Windows machines. Volume Space Sampling monitors will be created when the Auditing feature is active.

The remote monitors are compatible with the following operating systems:

  • Windows 10
  • Windows 11
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

The implementation of these remote monitors is controlled by system properties and Extra Data Fields (EDFs). The specifics of these configurations are elaborated on in this document.

Sample Run

First Run:
Run/Debug the script against any random client with the Set_Environment parameter set to 1 to create the system properties and the extra data fields used by the script. It will also remove the deprecated version of the solution from the environment.
Image 1
Image 2

Script Schedule:
It is a client script and is suggested to schedule it to run once per day for best results.
Image 3

Dependencies

EPM - Disk - Agnostic - Get-VolumeExhaustionEstimate

Remote Monitors

User Parameters

NameExampleRequiredDescription
Set_Environment1True (for first run only)Set it to 1 during the first run of the script to generate the necessary system properties and EDFs for managing the generated remote monitors. It will also remove the deprecated version of the solution from the environment.
Clean_Environment0FalseThis is a potentially destructive option. Setting this parameter to 1 while running the script will remove all the remote monitors, system properties, and EDFs generated by the script. USE WITH CAUTION

System Properties

NameExampleDefaultRequiredDescription
PVE_Monitoring_Server_Enable11TrueSet it to 1 to enable the Volume Space Prediction monitor creation for the servers. Image
PVE_Monitoring_Workstation_Enable11TrueSet it to 1 to enable the Volume Space Prediction monitor creation for the workstations. Image
PVE_Monitoring_Server_AuditOnly11FalseSet it to 1 to create the Volume Space Sampling monitor instead of Volume Space Prediction for the servers. The existing Volume Space Prediction monitors will be removed from the servers. Image
PVE_Monitoring_Workstation_AuditOnly11FalseSet it to 1 to create the Volume Space Sampling monitor instead of Volume Space Prediction for the workstations. The existing Volume Space Prediction monitors will be removed from the workstations. Image
PVE_Monitoring_Interval72003600TrueControls the generated Remote Monitor run time interval. Image 1 Image 2 Image 3
PVE_Monitoring_MinSizeGB6416TrueThe minimum drive size, in GigaBytes (GB), required to create a remote monitor is specified by this property. The default value is set at 16 GB. This means that the script will not create a remote monitor for any drive smaller than 16 GB. Image
PVE_Monitoring_Server_C_DriveOnly10FalseIf this property is set to 1, for the servers; the script will create remote monitors for the C: Drive only. By default, this property is set to 0, which means the remote monitor will be created for all internal/fixed drives. Image
PVE_Monitoring_Workstation_C_DriveOnly10FalseIf this property is set to 1, for the workstations; the script will create remote monitors for the C: Drive only. By default, this property is set to 0, which means the remote monitor will be created for all internal/fixed drives. Image
PVE_Monitoring_Server_ExcludedDrivesDEFFalseThis system property allows excluding specific drive letters for the servers from the monitor creation. The script will not create any remote monitors for the drives corresponding to the letters stored in this property. Furthermore, it will remove any existing monitors for these excluded drives, if any were previously created. For example, if you set this system property to EFGH, the script will exclude the E, F, G, and H drives of the servers from monitoring. Image
PVE_Monitoring_Workstation_ExcludedDrivesEFFalseThis system property allows excluding specific drive letters for the workstations from the monitor creation. The script will not create any remote monitors for the drives corresponding to the letters stored in this property. Furthermore, it will remove any existing monitors for these excluded drives, if any were previously created. For example, if you set this system property to EFGH, the script will exclude the E, F, G, and H drives of the workstations from monitoring. Image
PVE_Monitoring_Server_MinSamples6030TrueThe minimum number of samples required to generate an estimation for the servers. If a volume does not meet this number of samples, the estimation will be skipped. Image
PVE_Monitoring_Workstation_MinSamples4530TrueThe minimum number of samples required to generate an estimation for the workstations. If a volume does not meet this number of samples, the estimation will be skipped. Image
PVE_Monitoring_Server_DaysToReport3014TrueThe maximum age of samples to use for generating an estimation for the servers. Image
PVE_Monitoring_Workstation_DaysToReport2114TrueThe maximum age of samples to use for generating an estimation for the workstations. Image
PVE_Monitoring_Server_DaysToLead147TrueThe number of days before volume exhaustion to generate a volume space estimation for the servers. Image
PVE_Monitoring_Workstation_DaysToLead77TrueThe number of days before volume exhaustion to generate a volume space estimation for the workstations. Image
PVE_Monitoring_Server_AlertTemplate33TrueID of the alert template to apply to the remote monitors created for the servers. Image 1 Image 2 To find the ID of the Alert Templates: Image Note: Not applicable for Volume Space Sampling monitors or with PVE_Monitoring_Server_AuditOnly property.
PVE_Monitoring_Workstation_AlertTemplate13TrueID of the alert template to apply to the remote monitors created for the workstations. Image Note: Not applicable for Volume Space Sampling monitors or with PVE_Monitoring_Workstation_AuditOnly property.
PVE_Monitoring_Server_TicketCategory102102FalseID of the ticket category to apply to the remote monitors created for the servers. Image 1 Image 2 To find the ID of the Ticket Categories: Image Note: Not applicable for Volume Space Sampling monitors or with PVE_Monitoring_Server_AuditOnly property.
PVE_Monitoring_Workstation_TicketCategory102102FalseID of the ticket category to apply to the remote monitors created for the workstations. Image Note: Not applicable for Volume Space Sampling monitors or with PVE_Monitoring_Workstation_AuditOnly property.

Client-Level EDFs

NameExampleTypeDescription
PVEM_Exclude1/0Check BoxSelecting this Extra Data Field (EDF) will exclude the entire client from the monitoring. As a result, the script will not create any remote monitors for the machines under this client. Furthermore, upon marking this EDF, the script will also remove any previously created remote monitors for this client. This allows for flexible and customizable monitoring based on individual client needs. Image
PVEM_Exclude_Svr1/0Check BoxSelecting this Extra Data Field (EDF) will exclude the servers of this client from the monitoring. As a result, the script will not create any remote monitors for the servers under this client. Furthermore, upon marking this EDF, the script will also remove any previously created remote monitors for the servers of this client. Image
PVEM_Exclude_Wks1/0Check BoxSelecting this Extra Data Field (EDF) will exclude the workstations of this client from the monitoring. As a result, the script will not create any remote monitors for the workstations under this client. Furthermore, upon marking this EDF, the script will also remove any previously created remote monitors for the workstations of this client. Image
PVEM_Svr_AuditOnly1/0Check BoxSelecting this EDF will create the Volume Space Sampling monitor instead of Volume Space Prediction for the servers of the client. The existing Volume Space Prediction monitors will be removed from the servers. Image
PVEM_Wks_AuditOnly1/0Check BoxSelecting this EDF will create the Volume Space Sampling monitor instead of Volume Space Prediction for the workstations of the client. The existing Volume Space Prediction monitors will be removed from the workstations. Image
PVEM_Svr_C_DriveOnly1/0Check BoxIf this EDF is marked, the script will create remote monitors for the C: Drive only for the servers of the client. Image
PVEM_Wks_C_DriveOnly1/0Check BoxIf this EDF is marked, the script will create remote monitors for the C: Drive only for the workstations of the client. Image
PVEM_Svr_ExcludedDrivesDETextThis EDF allows excluding specific drive letters for the servers from the monitor creation. The script will not create any remote monitors for the drives corresponding to the letters stored in this EDF. Furthermore, it will remove any existing monitors for these excluded drives, if any were previously created. For example, if you set this system property to EFGH, the script will exclude the E, F, G, and H drives of the servers from monitoring. Image
PVEM_Wks_ExcludedDrivesEFGTextThis EDF allows excluding specific drive letters for the workstations from the monitor creation. The script will not create any remote monitors for the drives corresponding to the letters stored in this EDF. Furthermore, it will remove any existing monitors for these excluded drives, if any were previously created. For example, if you set this system property to EFGH, the script will exclude the E, F, G, and H drives of the workstations from monitoring. Image
PVEM_Server_MinSamples30TextThe minimum number of samples required to generate an estimation for the servers. If a volume does not meet this number of samples, the estimation will be skipped. Image
PVEM_Wks_MinSamples20TextThe minimum number of samples required to generate an estimation for the workstations. If a volume does not meet this number of samples, the estimation will be skipped. Image
PVEM_Svr_DaysToReport14TextThe maximum age of samples to use for generating an estimation for the servers of the client. Overrides the value stored in the PVE_Monitoring_Server_DaysToReport system property. Image
PVEM_Wks_DaysToReport7TextThe maximum age of samples to use for generating an estimation for the workstations of the client. Overrides the value stored in the PVE_Monitoring_Workstation_DaysToReport system property. Image
PVEM_Svr_DaysToLead14TextThe number of days before volume exhaustion to generate a volume space estimation for the servers of the client. Overrides the value stored in the PVE_Monitoring_Server_DaysToLead system property. Image
PVEM_Wks_DaysToLead7TextThe number of days before volume exhaustion to generate a volume space estimation for the workstations of the client. Overrides the value stored in the PVE_Monitoring_Workstation_DaysToLead system property. Image
PVEM_Svr_AlertTemplate54TextID of the alert template to apply to the remote monitors created for the servers of the client. Overrides the value stored in the PVE_Monitoring_Server_AlertTemplate system property. Image Note: Not applicable for Volume Space Sampling monitors or with the Audit only settings.
PVEM_Wks_AlertTemplate1TextID of the alert template to apply to the remote monitors created for the workstations of the client. Overrides the value stored in the PVE_Monitoring_Workstation_AlertTemplate system property. Image Note: Not applicable for Volume Space Sampling monitors or with the Audit only settings.
PVEM_Svr_TicketCategory102TextID of the ticket category to apply to the remote monitors created for the servers of the client. Overrides the value stored in the PVE_Monitoring_Server_TicketCategory system property. Image Note: Not applicable for Volume Space Sampling monitors or with the Audit only settings.
PVEM_Wks_TicketCategory102TextID of the ticket category to apply to the remote monitors created for the workstations of the client. Overrides the value stored in the PVE_Monitoring_Workstation_TicketCategory system property. Image Note: Not applicable for Volume Space Sampling monitors or with the Audit only settings.

Location-Level EDFs

NameExampleTypeDescription
PVEM_Exclude1/0Check BoxSelecting this Extra Data Field (EDF) will exclude the entire location from the monitoring. As a result, the script will not create any remote monitors for the machines under this location. Furthermore, upon marking this EDF, the script will also remove any previously created remote monitors for this location. Image
PVEM_Exclude_Svr1/0Check BoxSelecting this Extra Data Field (EDF) will exclude the servers of this location from the monitoring. As a result, the script will not create any remote monitors for the servers under this location. Furthermore, upon marking this EDF, the script will also remove any previously created remote monitors for the servers of this location. Image
PVEM_Exclude_Wks1/0Check BoxSelecting this Extra Data Field (EDF) will exclude the workstations of this location from the monitoring. As a result, the script will not create any remote monitors for the workstations under this location. Furthermore, upon marking this EDF, the script will also remove any previously created remote monitors for the workstations of this location. Image
PVEM_Svr_AuditOnly1/0Check BoxSelecting this EDF will create the Volume Space Sampling monitor instead of Volume Space Prediction for the servers of the location. The existing Volume Space Prediction monitors will be removed from the servers. Image
PVEM_Wks_AuditOnly1/0Check BoxSelecting this EDF will create the Volume Space Sampling monitor instead of Volume Space Prediction for the workstations of the location. The existing Volume Space Prediction monitors will be removed from the workstations. Image

Computer-Level EDFs

NameExampleTypeDescription
PVEM_Exclude1/0Check BoxSelecting this Extra Data Field (EDF) will exclude the computer from the monitoring. As a result, the script will not create any remote monitors for the machine. Furthermore, upon marking this EDF, the script will also remove any previously created remote monitors for this computer. Image
PVEM_AuditOnly1/0Check BoxSelecting this EDF will create the Volume Space Sampling monitor instead of Volume Space Prediction for the machine. The existing Volume Space Prediction monitors will be removed. Image
PVEM_C_DriveOnly1/0Check BoxIf this EDF is marked, the script will create remote monitors for the C: Drive only for the computer. Image
PVEM_ExcludedDrivesEDFTextThis EDF allows excluding specific drive letters for the computer from the monitor creation. The script will not create any remote monitors for the drives corresponding to the letters stored in this EDF. Furthermore, it will remove any existing monitors for these excluded drives, if any were previously created. Image
PVEM_MinSamples45TextThe minimum number of samples required to generate an estimation for the computer. If a volume does not meet this number of samples, the estimation will be skipped. Image
PVEM_DaysToReport30TextThe maximum age of samples to use for generating an estimation for the servers of the computer. Image
PVEM_DaysToLead10TextThe number of days before volume exhaustion to generate a volume space estimation for the computer. Image

Output

  • Remote Monitors