Skip to main content

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​

NameDefaultExampleLevelManaged ByFunction
cPVAL Printer Details(blank)HTML tableDeviceAutomationThis custom field stores the information of the printers fetched using the Script - Get Printer Details.
cPVAL Get Printer Details(blank)-DeviceAutomationelect the options at Organization, Location or Device level to enable or disable auditing of printer details on endpoints.
cPVAL Ninja API Client ID(blank)8GIo0Y646lsxWXj5HBO6RcUoKY7SystemManualOptional. Only needed for the reports. Identifies the API application the report automation signs in as.
cPVAL Ninja API Client Secret(blank)67h5w58GIo0Y646lsxWXj5...SystemManualOptional. Only needed for the reports. Authenticates that API application.

Automations​

NameFunction
Get Printer DetailsCollects 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 KBOptional. Builds the Knowledge Base articles and CSV files from cPVAL Printer Details.

Create the Compound Conditions:​

NameFunction
Get Printer Details - WorkstationsThis 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 - ServerThis 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​

NameFunction
Get Printer DetailsThe 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.

  1. 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.
  2. Report automation: Create the WYSIWYG Custom Field Report - Organization and Global KB automation.
  3. 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:
note

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