Avatar of jskfan
jskfan
Flag for Cyprus

asked on 

prnmngr.vbs does not create new printer port but it accepts only existing one.

prnmngr.vbs  does not create new printer port but it accepts only existing one.

I am running this command "
C:\>cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a  -p
"Myprinter" -m "HP 910" -r "printer1" -s Windows7

Open in new window


I got error:
Unable to add printer Myprinter Error 0x80041001 Generic failure
Operation PutInstance
Provider Win32 Provider
Description The specified port is unknown.
Win32 error code 1796

Open in new window


If I put Existing Port after -r then it will add the printer .
However I an trying to add new printer that did not exist and did not have  an existing  port on the Remote PC

Any  Help?

Thank you
Printers and ScannersVB ScriptScripting Languages

Avatar of undefined
Last Comment
jskfan

8/22/2022 - Mon