FortiDLP
FortiDLP is a cloud-native endpoint DLP and Insider Risk Solution which is aimed at monitoring and Preventing Data Theft on the endpoint, across Windows, macOS and Linux.
Anthony_E
Community Manager
Community Manager
Article Id 353598
Description This article describes how to find a Windows printer UUID.
Scope FortiDLP.
Solution

For print policies such as Sensitive documents printed using the physical printer, there is the option to configure Printer unique identifiers (UUIDs) for agent v10.2.0+ for macOS and Linux and v10.4.0+ for Windows. This article details how to find the UUID of a printer on Windows.

 

Note: As printer UUIDs are linked to hardware, some printers, such as Microsoft Print to PDF will not have a UUID associated with it and will therefore return an empty value. Additionally, printers connected via USB will not have a UUID.

 

PowerShell method:

Download the script get-printer-uuid.ps1, attached at the bottom of this article.

 

In an administrator PowerShell terminal, navigate to the folder containing the downloaded file, and run it by typing:

 

.\get-printer-uuid.ps1 <printer-name>

 

This will return the UUID of the printer. Alternatively, it is possible to run the script with no parameters to return the UUIDs of all printers found on the machine:

 

.\get-printer-uuid.ps1

 

Manual method:

The PowerShell method is recommended for simplicity. However, if for some reason it is not possible to run the script, or it returns an error, the manual GUI approach is detailed here.

 

  1. Go to Settings -> Bluetooth & devices -> Printers & scanners and select the printer in question.
  2. Select Printer properties and select the Ports tab.
  3. Make a note of the Port name and the Description (the one in the row that is ticked/highlighted).
  4. Open the Registry Editor and go to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Print/Monitors.
  5. Go to the entry with the same name as given in the Description that was noted earlier, for example, WSD Port. Note: this is not always accurate, it is maybe necessary to look in all entries within this directory to find the correct one.
  6. Select Ports, then the Port name that matches what was noted earlier.
  7. The Printer UUID entry will contain the correct UUID.