troubleshooting Question

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

Avatar of jskfan
jskfanFlag for Cyprus asked on
Printers and ScannersVB ScriptScripting Languages
3 Comments1 Solution149 ViewsLast Modified:
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

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

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
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros