The Silence Map

Asked on Super User by zacoder, 5 years ago. No reply there for at least a week.

how to add local file based printer port in command line

I can add a local file based printer port using the printer properties- Ports screen in Windows 10. Adding local file based printer port in printer properties But I need to add a new printer with file based local printer port in command line. I have tried both: rundll32 printui.dll,PrintUIEntry /if /b testprinter1 /f %windir%\inf\ntprint.inf /r C:\util\test.pdf /m Microsoft Print To PDF and Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs -a -p testprinter1 -m Microsoft Print To PDF -r C:\util\test.pdf But both are giving 'The specified port is unknown.' error and not add the

This question is one of 1 report of the same problem:

how to add local file based printer port in command line

Nobody has answered it yet, here or anywhere.

Related problems

Question by zacoder on Super User, licensed CC BY-SA. We show a short excerpt and link to the original thread as credit.