All Drives Audit [Windows]
Purpose
The All Drives Audit [Windows] solution answers a common question: which drives are running out of space?
It lists every drive on every Windows device with its size, free space, free space percentage, fragmentation, file system and model. Use it to find full or badly fragmented drives before they cause problems.
How It Works
- Collect: The All Drives Audit [Windows] automation runs daily on every Windows device and stores the drive list in cPVAL Drive Details.
- Report (optional): The WYSIWYG Custom Field Report - Organization and Global KB automation runs on one device and turns that field into organization and global Knowledge Base articles and CSV files.
Key Capabilities
- Every Drive: Local, removable, optical and mapped network drives.
- Readable Sizes: Sizes shown in the most readable unit, from bytes to terabytes.
- Free Space Percentage: A numeric column you can sort or filter to find full drives.
- Fragmentation Check: Measured on local fixed drives. The check only reads the drive and never defragments it.
- Cross-Client View: Optional Knowledge Base articles and CSV files per organization and for all clients.
Associated Content
Custom Fields
| Name | Default | Example | Level | Managed By | Function |
|---|---|---|---|---|---|
| cPVAL Drive Details | (blank) | HTML table | Device | Automation | Stores every drive on the device with its details. |
| cPVAL Ninja API Client ID | (blank) | 8GIo0Y646lsxWXj5HBO6RcUoKY7 | System | Manual | Optional. Only needed for the reports. Identifies the API application the report automation signs in as. |
| cPVAL Ninja API Client Secret | (blank) | 67h5w58GIo0Y646lsxWXj5... | System | Manual | Optional. Only needed for the reports. Authenticates that API application. |
Automations
| Name | Function |
|---|---|
| All Drives Audit [Windows] | Collects every drive on the device and stores them in the custom field. |
| WYSIWYG Custom Field Report - Organization and Global KB | Optional. Builds the Knowledge Base articles and CSV files from the custom field. |
Audit Reports
| Name | Function |
|---|---|
| All Drives Audit [Windows] | Lists every drive of every client, per organization and for all clients. |
Implementation
Step 1: Create the Custom Field
Step 2: Create the Automation
Set Run as to System.
Step 3: Schedule the Data Collection
Schedule the automation to run once per day against the All Windows Devices group.
Step 4 (Optional): Set Up the Reports
Skip this step if the partner does not need reports. The data is still collected and kept on each device in the custom field.
- API application and credentials: Create the NinjaOne API application and fill the cPVAL Ninja API Client ID and cPVAL Ninja API Client Secret fields, as described in WYSIWYG Custom Field Report - Organization and Global KB. If they are already set up for another ProVal reporting solution, reuse them.
- Report automation: Create the WYSIWYG Custom Field Report - Organization and Global KB automation.
- Schedule: Schedule the report automation to run once per day against one device, such as a server that is always online. Run it after the data collection. Use the values listed in the Report Settings section of the Audit Report:
Knowledge Base articles need the NinjaOne Documentation app. Without it, set Report Output to Local CSV Files to create only the CSV files on the device that runs the report.
Comprehensive FAQs
General Usage
Q. What does this solution do?
A: It lists every drive on every Windows device with its size, free space, fragmentation, file system and model, and refreshes the list every day.
Q. Does it defragment my drives?
A: No. It only measures fragmentation. It never changes the drive.
Q. Why are the fragmentation columns blank for some drives?
A: Fragmentation is only measured on local fixed drives. It is also blank when Windows cannot analyze the drive, for example while a scheduled optimization is running.
Q. How do I find drives that are nearly full?
A: Sort or filter on DriveFreeSpacePercent. The size columns use mixed units, so they do not sort numerically.
Q. Why does a DVD drive show 0 B?
A: The drive has no disc in it.
Q. Does it support Mac or Linux?
A: No. It supports Windows devices only.
Reports
Q. Do I need the reports?
A: No. They are optional. Without them, the data is still collected and kept on each device in its custom field.
Q. What do I need for the Knowledge Base articles?
A: The NinjaOne Documentation app, an API application with its credentials in cPVAL Ninja API Client ID and cPVAL Ninja API Client Secret, and the WYSIWYG Custom Field Report - Organization and Global KB automation. Without the Documentation app, the report can create CSV files only.
Q. How current are the reports?
A: They show the data from the last collection on each device. The DataCollectionDate column shows when each device reported. Schedule the report after the data collection so it picks up the latest data.
Q. Where are the CSV files saved?
A: On the device that runs the report automation, under C:\ProgramData\_Automation\Report. The exact path is listed in each Audit Report document.
Changelog
2026-10-14
- Initial version of the document.