Hello,
We are using PDFCreator to print some reports with a scheduled task and the auto-save functionnality. We see the .ps files created but no .pdf.
We enabled the pdfcmon logs and here are the content (truncated so it can fit in thfe question) :
[03.11.2013 17:16:40]RevertToSelf=successful
[03.11.2013 17:16:40]WTSQueryUserToken=An attempt was made to reference a token that does not exist.
[03.11.2013 17:16:40]GetEnvironemtVariableForUser-Variable=%TMP%
[03.11.2013 17:16:40]GetEnvironemtVariableForUser-Result=C:\Windows\TEMP
[03.11.2013 17:16:40]User-Temp=C:\Windows\TEMP
[03.11.2013 17:16:40]Modul-GetUserTmp=End (True)
[03.11.2013 17:16:40]m_SessionId=0
[03.11.2013 17:16:40]Modul-ExtendPathWithSessionId=Start
[03.11.2013 17:16:40]Modul-IsPerSessionTempDirActivated=Start
[03.11.2013 17:16:40]Open 'Terminal Server' policy key=successful
[03.11.2013 17:16:40]Open 'PerSessionTempDir' policy value=not successful
[03.11.2013 17:16:40]Open 'Terminal Server' key=successful
[03.11.2013 17:16:40]Open policy value 'PerSessionTempDir'=successful
[03.11.2013 17:16:40]PerSessionTempDir=1
[03.11.2013 17:16:40]Modul-IsPerSessionTempDirActivated=End (True)
[03.11.2013 17:16:40]Modul-IsfDenyTSConnectionsActivated=Start
[03.11.2013 17:16:40]Open 'Terminal Server' policy key=successful
[03.11.2013 17:16:40]Open 'fDenyTSConnections' policy value=successful
[03.11.2013 17:16:40]fDenyTSConnections=0
[03.11.2013 17:16:40]Modul-IsfDenyTSConnectionsActivated=End (False)
[03.11.2013 17:16:40]SessionId=0
[03.11.2013 17:16:40]IsfDenyTSConnectionsActivated=False
[03.11.2013 17:16:40]IsPerSessionTempDirActivated=True
[03.11.2013 17:16:40]((s_osvi.dwMajorVersion < 6) && (s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win XP)
[03.11.2013 17:16:40]IsfDenyTSConnectionsActivated=False
[03.11.2013 17:16:40](m_SessionId > 0)=False
[03.11.2013 17:16:40]Modul-ExtendPathWithSessionId=End (False)
[03.11.2013 17:16:40]ExtendPathWithSessionId=False
[03.11.2013 17:16:40]Modul-GetUserTmpPath=End (True)
[03.11.2013 17:16:40]TmpPath=C:\Windows\TEMP\PdfCreator\Spool
[03.11.2013 17:16:40]Modul-GetDatFileName=Start
[03.11.2013 17:16:40]pDatFile=B1CB698F4A6041C0B980BF6DC6E84B07.inf
[03.11.2013 17:16:40]Modul-GetDatFileName=End (True)
[03.11.2013 17:16:40]PostscriptFile=C:\Windows\TEMP\PdfCreator\Spool\B1CB698F4A6041C0B980BF6DC6E84B07.ps
[03.11.2013 17:16:40]PostscriptFileName=B1CB698F4A6041C0B980BF6DC6E84B07.ps
[03.11.2013 17:16:40]DocName=F:\Hestia Systeme Plus\ModelesEdition\Personnalise\CartesPlateaux_x3_SansCodage_Valais.fr3
[03.11.2013 17:16:40]OpenPrinter=True
[03.11.2013 17:16:40]Modul-PdfStartDocPort=End (True)
[03.11.2013 17:16:41]Modul-StartPdfCreator=Start
[03.11.2013 17:16:41]RevertToSelf=successful
[03.11.2013 17:16:41]WTSQueryUserToken=An attempt was made to reference a token that does not exist.
[03.11.2013 17:16:41]DuplicateTokenEx=The handle is invalid.
[03.11.2013 17:16:41]CreateEnvironmentBlock=successful
[03.11.2013 17:16:41]EnvironmentSize=1285
[03.11.2013 17:16:41]Modul-ExtendPathWithSessionId=Start
[03.11.2013 17:16:41]Modul-IsPerSessionTempDirActivated=Start
[03.11.2013 17:16:41]Open 'Terminal Server' policy key=successful
[03.11.2013 17:16:41]Open 'PerSessionTempDir' policy value=not successful
[03.11.2013 17:16:41]Open 'Terminal Server' key=successful
[03.11.2013 17:16:41]Open 'Terminal Server' policy key=successful
[03.11.2013 17:16:41]Open 'fDenyTSConnections' policy value=successful
[03.11.2013 17:16:41]fDenyTSConnections=0
[03.11.2013 17:16:41]Modul-IsfDenyTSConnectionsActivated=End (False)
[03.11.2013 17:16:41]SessionId=0
[03.11.2013 17:16:41]IsfDenyTSConnectionsActivated=False
[03.11.2013 17:16:41]IsPerSessionTempDirActivated=True
[03.11.2013 17:16:41]((s_osvi.dwMajorVersion < 6) && (s_osvi.wProductType == VER_NT_WORKSTATION))=False (=> <> Win XP)
[03.11.2013 17:16:41]IsfDenyTSConnectionsActivated=False
[03.11.2013 17:16:41](m_SessionId > 0)=False
[03.11.2013 17:16:41]Modul-ExtendPathWithSessionId=End (False)
[03.11.2013 17:16:41]ExtendPathWithSessionId=False
[03.11.2013 17:16:41]CommandLine= /PPDFCREATORPRINTER /PIF=C:\Windows\TEMP\PdfCreator\Spool\B1CB698F4A6041C0B980BF6DC6E84B07.inf
[03.11.2013 17:16:41]Command=C:\Program Files (x86)\PDFCreator\PDFCreator.exe
[03.11.2013 17:16:41]CloseHandle(hTokenDup)=The handle is invalid.
[03.11.2013 17:16:41]CloseHandle(hTokenNew)=The handle is invalid.
[03.11.2013 17:16:41]CloseHandle(pi.hThread)=successful
[03.11.2013 17:16:41]CloseHandle(pi.hProcess)=successful
[03.11.2013 17:16:41]DestroyEnvironmentBlock=successful
[03.11.2013 17:16:41]Modul-StartPdfCreator=End (True)
As we can see it seems that the command line used to print the pdf is not working.
When we run the batch file logged with the same user manually the files are created.
We are under Windows Server 2008 Standard R2
Thanks for your help,
Charles.