Updated: 28 August 2026

Important Updates for installations and upgrade for PaperCut Ver.25 and higher

NOTE: These changes are REQUIRED.

 

This article provides comprehensive instructions for the changes required for the new SQL Drivers to work with PaperCut MF version 25.0 and later. Follow these required steps to ensure connectivity and proper system behavior. The process includes updating JDBC driver files, modifying configuration settings, and updating related scripts.

Prerequisites

  • Administrator access: You will need administrative privileges to copy files and edit configuration files.

  • PaperCut MF version 25.0.12.76509 or later: These instructions specifically apply to version 25.0 and above.

  • Backup: Before making any changes, back up the PaperCut database.

Step 1: Install or Upgrade PaperCut Application and Secondary Servers.

1. Download PaperCut Release

  1. Ensure you are running the latest supported version of PaperCut MF or NG. Updates often include critical security patches. Follow the official instructions on the PaperCut Update Manual to perform the upgrade.

  2. Run the installer and follow the prompts.

  3. For installation of PaperCut from scratch continue with this before continuing.

Step 2: Install or Upgrade the JDBC Driver

1. Copy the JDBC JAR File

  1. Locate the appropriate JDBC driver JAR file, for example: mssql-jdbc-13.2.1.jre11.jar.

  2. Copy this file from your PaperCut installation directory:

    • Source:
      [app server install dir]/server/repository/database-drivers/sqlserver/mssql-jdbc-13.2.1.jre11.jar

    • Destination:
      [app server install dir]/server/lib-ext/

Example command (Windows): 
copy "C:\Program Files\PaperCut MF\server\repository\database-drivers\sqlserver\mssql-jdbc-13.2.1.jre11.jar" "C:\Program Files\PaperCut MF\server\lib-ext\"
  1. A screenshot of a computerAI-generated content may be incorrect.

2. Copy the Authentication DLL

  1. Locate the JDBC authentication DLL, for example: mssql-jdbc_auth-13.2.1.x64.dll.

  2. Copy this file to the following directory:

    • Source:
      [app server install dir]/server/repository/database-drivers/sqlserver/mssql-jdbc_auth-13.2.1.x64.dll

    • Destination:
      [app server install dir]/server/bin/win/lib64/

Example command (Windows): 
copy "C:\Program Files\PaperCut MF\server\repository\database-drivers\sqlserver\mssql-jdbc_auth-13.2.1.x64.dll" "C:\Program Files\PaperCut MF\server\bin\win\lib64\"
  1. A screenshot of a computerAI-generated content may be incorrect.

Step 3: Update the JDBC Connection String

Update the JDBC connection string in the server.properties file to include additional parameters for encryption and certificate trust.

1. Edit the server.properties File

  1. Navigate to [app server install dir]/server/.

  2. Open server.properties in a text editor with administrator privileges.

  3. Locate the line beginning with database.url=.

  4. Append the following to the end of the line (if not already present):
    ;encrypt=false;trustServerCertificate=true

  5. Example:
    database.url=jdbc:sqlserver://localhost:1433;databaseName=papercut;encrypt=false;trustServerCertificate=true

  6. Save the file.

2. Automating the Update with PowerShell (Optional)

If you manage multiple installations, you may automate this update using a PowerShell script:

$path = "C:\Program Files\PaperCut MF\server\server.properties"
$lines = Get-Content -Path $path
$pattern = '^database\.url='
$updated = $lines | ForEach-Object {
    if ($_ -match $pattern) {
        if ($_ -notmatch 'encrypt=false;trustServerCertificate=true') {
            $_ + ";encrypt=false;trustServerCertificate=true"
        } else {
            $_
        }
    } else {
        $_
    }
}
$updated | Set-Content -Path $path -Encoding UTF8
Write-Host "Update complete."

Step 4: Update Database Connection URL for External Card Lookup

  1. Log in to the PaperCut Admin Portal.

  2. Navigate to Options > Advanced > External Card Lookup.

  3. Under Database Type, ensure that you are using Microsoft SQL Server. Note: If this is 'legacy, it MUST be changed.

  4. Under Database Connection URL, ensure the connection string is formatted as follows:
    jdbc:sqlserver://localhost:1433;databaseName=papercut;encrypt=false;trustServerCertificate=true

  5. Save and apply the settings.

  6. A screenshot of a computer

Step 5: Restart PaperCut Services

  1. Restart the PaperCut Application Server service to apply changes.

  2. After restarting, log in to the PaperCut portal and verify the database connection works as expected.

Step 6: Update Printer Scripts for MyPC Printers

To ensure pop-up notifications work correctly for public PC printing via MyPC, update your printer scripts. If you skip this step, users will not receive the necessary pop-up prompts.

  1. Locate your printer script file(s), such as POPUP_script_MyPC.txt in your installer’s scripts folder or HERE.

  2. Replace the contents with the following up-to-date script:

function printJobHook(inputs, actions) {
  if (!inputs.job.isAnalysisComplete) {
    actions.log.debug("Job analysis not complete, exiting.");
    return;
  }
  
  // Debug inputs and actions
  actions.log.debug("inputs.job: " + JSON.stringify(inputs.job));
  actions.log.debug("actions.client: " + JSON.stringify(actions.client));
  
  // Inform the user of their classification (fixed HTML string)
  var response = actions.client.promptOKCancel("<html><span style='font-size:17pt;'>Please visit any Print Release Station to retrieve your Print Job!</span></html>");
  if (response == "OK") {
    // Add your action code here for clicking OK
    actions.log.debug("User clicked OK");
  } else if (response == "CANCEL") {
    // Add your action code here for clicking Cancel
    actions.log.debug("User clicked Cancel");
    actions.job.cancel();
  } else if (response == "TIMEOUT") {
    // Add your action code here for timeout
    actions.log.debug("Prompt timed out");
    actions.job.cancel();
  }
}​