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.
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.