Unable to "print" via unattended application

Our ERP application can execute tasks via a CLI. These tasks are then fired via Windows Scheduler (Windows 10).

When the tasks were pointing to a standard printer, they worked fine, the documents printed as expected.

If we run the talks via the GUI using the PDFCreator printers, they work fine.

If we automate the tasks, we don’t get any PDFs.

Looking at the “pdfcmonLog” file, we get the following error when the jobs are run via the CLI:

[27.11.2015 11:50:47.731]WTSQueryUserToken=Begin
[27.11.2015 11:50:47.731]WTSQueryUserToken=An attempt was made to reference a token that does not exist.

We have PDFCreater plus, I don’t have any details of the support email address.

Thank you for your help


something like that, here, too. Printing on Windows 2008 R2 does not work when unattended (no user logged in) and started from scheduled task.

PDF Creator 2.2.1 Build 1031

I already checked that the printer is installed locally: http://serverfault.com/questions/686811/windows-2008-r2-not-printing-from-scheduled-task

Created a desktop-directory for the systemprofile in:
C:\Windows\System32\config\systemprofile\Desktop and

Where’s the pdfcmonLog?

Did you find a solution, yet?


it could be a permission issue, which account starts the scheduled task?

To enable logging for the pdfcmon.dll, add the following DWORD (32 bit) value to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\pdfcmon in your registry: name : Logging, value :1. This will cause PDFCreator to create an advanced logfile at %Windir%\Temp\_pdfcmonLog.txt.


best regards,

Maybe this helps: http://serverfault.com/questions/686811/windows-2008-r2-not-printing-from-scheduled-task

So you need PDFCreator Server to print from scheduled task.