Get Printer Details
Purpose
This solution is built to fetch the attached Printer Details of the Windows endpoint.
How It Works
Collect: The Script - Get Printer Details runs on Windows machines. It executes PowerShell to collect the information and stores it in Custom Field - cPVAL Printer Details.
Report (optional): The WYSIWYG Custom field Report - Organization and Global KB automation runs on one device and turns Custom Field - cPVAL Printer Details into organization and global Knowledge Base articles and CSV files.
Associated Content
Custom Fields
| Name | Default | Example | Level | Managed By | Function |
|---|---|---|---|---|---|
| cPVAL Printer Details | (blank) | HTML table | Device | Automation | This custom field stores the information of the printers fetched using the Script - Get Printer Details. |
| cPVAL Get Printer Details | (blank) | - | Device | Automation | elect the options at Organization, Location or Device level to enable or disable auditing of printer details on endpoints. |
| 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 |
|---|---|
| Get Printer Details | Collects detailed printer information from the local machine and stores it to the Custom field - cPVAL Printer Details in the tabular format. |
| WYSIWYG Custom Field Report - Organization and Global KB | Optional. Builds the Knowledge Base articles and CSV files from cPVAL Printer Details. |
Create the Compound Conditions:
| Name | Function |
|---|---|
| Get Printer Details - Workstations | This compound condition is built to deploy the Printer auditing on the Windows workstations where the custom field is set to 'Windows' or 'Windows Workstation'. |
| Get Printer Details - Server | This compound condition is built to deploy the Printer auditing on the Windows servers where the custom field is set to 'Windows' or 'Windows Server'. |
Audit Reports
| Name | Function |
|---|---|
| Get Printer Details | The report shows the active printers detail of the endpoint. Use this report to find the number of active printers of the agent. The Get Printer Details automation collects the data on each Windows device. |
Implementation
Step 1: Create the Custom Fields
Step 2: Create the Automation
Step 3: Create the Compound Condition
Step 4: Schedule the data collection
- Enable the compound conditions to run every 24 hours
Step 5 (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 - cPVAL Printer Details.
- 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 against one device, such as a server that is always online. Run it after the sync status 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.
FAQs
Q. Do I need the reports?
A: No. They are optional. Without them, the printer details are still collected and kept on each device in its custom fields.
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. Schedule the report after the printer details 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\Printer\. The exact path is listed in the Audit - Get Printer Details Report.
Changelog
2026-10-21
- Addition of Knowledge Article and CSV file that contains Global and Organization level report.
- Audit report creation and Solution modification
2026-10-13
- Initial version of the document