PDF Print command line is unable to find the printers while printing from a SYSTEM user account on windows server 2016

Dear Verypdf,

We have been using a licensed version of pdfprint command line on a windows server 2012 for several years now. Recently we migrated to a new windows server 2016 and verypdf doesn't seem to find the printers anymore while printing from a SYSTEM user (from a php platform).

http://www.verypdf.com/app/pdf-print-cmd/try-and-buy.html#buy

We have installed and copied all printers in the registry to HK_USERS.

The -listprinter command provides the list of all printers correctly.
Tested with both local and network printers with all possible alias combinations (IP/name/..) all returning the same error message.

The debug log show following:
Reading Command Line options...
Copyright (C) VeryPDF.com
"XXX\pdfprint.exe" "-$" "XXX" "-printer" "XXX" "-debug" "-logtofile" "logloglog.ext" "-pdforient" "1" "-scalex" "100" "-scaley" "100" "XXX\label_test.pdf"
Version Build Date: Aug 7 2016
Try to load 'WINSPOOL.DRV' file...
Load 'WINSPOOL.DRV' file OK.
Current default printer is 'Microsoft Print to PDF'.
SetDefaultPrinter to 'XXX' printer, return code = 0.

The exec command shows:
{"output":"FAIL","cmd":"XXX\\pdfprint.exe -$ XXX -printer \\10.100.X.X\\XXX -debug -logtofile \"logloglog.txt\" -pdforient 1 -scalex 100 -scaley 100 XXX\\label_test.pdf","result":"Can't locate the \"XXX\" printer in this computer, please double check the printer name and to try again."}

Do you maybe have any other suggestions?

Kind regards,
Customer
-----------------------------------------

image
Thanks for your message, you can use "CmdAsUser Command Line Tool" or "VeryPDFComRunCmd COM Component" to run pdfprint.exe inside an interactive user account instead of default SYSTEM user, you will able to get it work properly.

You may download "CmdAsUser Command Line Tool" or "VeryPDFComRunCmd COM Component" from this web page to try,

https://www.verydoc.com/exeshell.html#CmdAsUser_Command_Line_Tool
https://www.verydoc.com/download/cmdasuser.zip

You can run following command line to run pdfprint.exe from an interactive user account,

CmdAsUser.exe Administrator . /p password /c "XXX\pdfprint.exe" "-$" "XXX" "-printer" "XXX" "-debug" "-logtofile" "logloglog.ext" "-pdforient" "1" "-scalex" "100" "-scaley" "100" "XXX\label_test.pdf"

You can also use a COM component to run pdfprint.exe from an interactive user account,

https://www.verydoc.com/exeshell.html#VeryPDFComRunCmd_COM_Component

Please look at following web page for more information,

http://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Print and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!