Drive Space Change Check

Where the data on the disk increases by a significant amount it may be an indication of something going amiss on the device.

The Drive Space Change Check generates a failure when the data consumed on the disk matches or exceeds the configurable threshold value during the previous twenty four hours.

Check configuration

Add

  1. On the N-sight RMM Dashboard North-pane, select the device
  2. Go to the Checks tab
  3. Click Add Check
  4. Choose Add DSC > Drive Space Change Check
  5. Select the Disk from the drop-down and enter the percentage Threshold value
  6. To run an Automated Task when the Check fails choose Assign a Task after creating the Check
  7. OK to save and apply
  8. Where Assign a Task after creating the Check is selected:
    1. Select the script
    2. Click Next to configure
  9. Enter the Command Line parameters (if required)
  10. Set a Script timeout in the range 1 - 3600 seconds (default 120 seconds)
  11. Click Finish to save and apply

Edit

  1. On the N-sight RMM Dashboard North-pane, select the device
  2. Go to the Checks tab
  3. Select the target Drive Space Change Check
  4. From the Check drop-down
  5. Click Edit Check (also available from the Check's right-click menu)
  6. Configure the settings
  7. Click OK to save and apply

Delete

  1. On the N-sight RMM Dashboard North-pane, select the device
  2. Go to the Checks tab
  3. Select the target Drive Space Change Check
  4. From the Check drop-down
  5. Click Delete Check (also available from the Check's right-click menu)
  6. Enter the password you have logged into the Dashboard under to confirm removal
  7. Click OK to delete

Dashboard

Once uploaded to the Dashboard, the More Information column containing the Total and Free space values along with the percentage Change reported by the Check, whilst clicking on this link opens the More Information... dialog.

This dialog includes the overall file system Capacity, the Used space and Free space values along with a graphical representation of this information; the Space percentage is displayed when hovering over the Free space or Used space portion of the graph.

win_disk_change

Access Denied

An access denied message may be returned where the account the Agent service is running under does not have sufficient permissions to query the selected drive and to resolve this either change the Agent service account or change the permissions of the account the Agent service runs under to allow access to the drive.

Local Disks

Only those logical drives identified by the computer as Local (DriveType 3) or Compact Disc (DriveType 5) are selectable in this Check. This Check does not support any other drive types included Network (DriveType 4) or Removable (DriveType 2).

The connected drives and their Windows assigned DriveType may be viewed on the device using Powershell:

  1. Log on to the target device
  2. Open the Run dialog (Windows button +R)
  3. Type: powershell then click OK
  4. Type Get-WmiObject Win32_LogicalDisk and then press enter on your keyboard
    • For each drive the DeviceID, DriveType along with additional information is returned

Example output fromGet-WmiObject Win32_LogicalDisk command

PS C:\Users\User101\Desktop> Get-WmiObject Win32_LogicalDisk

DeviceID     : C:

DriveType    : 3

ProviderName :

FreeSpace    : 40908886016

Size         : 241741852672

VolumeName   : OS

DeviceID     : H:

DriveType    : 2

ProviderName :

FreeSpace    :

Size         :

VolumeName   :

DeviceID     : Z:

DriveType    : 4

ProviderName : \\100.200.300.401\shares

FreeSpace    : 18536964096

Size         : 1798648623104

VolumeName   : Data

To format this information as a table: Get-WmiObject Win32_LogicalDisk | Format-Table -auto

To format this information as a table and output to a text file: Get-WmiObject Win32_LogicalDisk | Format-Table -auto | Out-File filename.txt -width 120

For additional details on this class, including the numeric value that corresponds to the logical disk (DriveType) please refer to the Microsoft article: Win32_LogicalDisk Class

Please note that we are not responsible for the content of external sites.