none
Can't add network printer using prnmngr.vbs - Unknown print processor error

    Question

  • I tried installing a printer connection using the following command:

    Cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -ac -p "Network address of printer"

    It runs for a few minutes, then displays Win32 error 1798, which means "unknown printer processor." The address is correct, but does it have to bee an IP address, or can it be a regular DNS address? Also, do I have to specify the driver name or should it be selected automatically?

    Thanks for your help.

    Friday, February 24, 2012 9:34 PM

Answers

All replies

  • Can you map the printer via any other means?  Manually or through batch?

    \\printserver\printername


    Rich Prescott | Infrastructure Architect, Windows Engineer and PowerShell blogger | MCITP, MCTS, MCP

    Engineering Efficiency
    @Rich_Prescott
    Windows System Administration tool
    AD User Creation tool

    Saturday, February 25, 2012 4:26 AM
    Moderator
  • Your command is not correct...

    This is the correct one(for a windows shared printer):
    Cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -ac -p "\\servername\sharedprinter"

    If you want to print to a standard tcp printer :

    ::install the driver
    rundll32 printui.dll,PrintUIEntry /ia /m "Color LaserWriter 12/600 PS" /f "%windir%\inf\ntprint.inf"
    cd /D cd %SystemRoot%\system32 
    :: create the printer tcp port
    cscript prnport.vbs -a -r IP_10.0.0.100 -h 10.0.0.100 -o raw -n 9100
    :: connect the printer
    cscript prnmngr.vbs -a -p "Apple P660" -m "Color LaserWriter 12/600 PS" -r "IP_10.0.0.100" 

    that's all

    Gastone Canali >http://www.armadillo.it

    Se alcuni post rispondono al tuo quesito (non necessariamente i miei), ricorda di contrassegnarli come risposta e non dimenticare di contrassegnare anche i post utili . GRAZIE!



    Monday, February 27, 2012 12:47 AM
  •  I can install the printer using Windows GUI by simply entering entering the http:// address.

    How do I find the server name of the printer?

    Monday, February 27, 2012 8:57 PM
  •  I can install the printer using Windows GUI by simply entering entering the http:// address.

    How do I find the server name of the printer?

    You are accessing an Internet pronter.  I don't think prnmgr can access Internet printers.


    ¯\_(ツ)_/¯

    Monday, February 27, 2012 10:41 PM
  • The install command should be something like this
    rundll32 printui.dll,PrintUIEntry /b " DisplayPrinterName" /x /n "printer name" /if /f "\\Server\share\printDriver\xp\prn32.INF" /r http://xxx.xxx.xxx.xxx/m "printer driver model name"

    Here you can find how to install a IPP  printer  and more http://support.microsoft.com/kb/314486/en-us 


    Gastone Canali >http://www.armadillo.it

    Se alcuni post rispondono al tuo quesito (non necessariamente i miei), ricorda di contrassegnarli come risposta e non dimenticare di contrassegnare anche i post utili . GRAZIE!


    Monday, February 27, 2012 10:46 PM
  • I got it to install successfully by using the command shown at the end of the page from the link you gave me. Thank you very much for your help!
    Tuesday, February 28, 2012 7:18 PM
  • Perfect.

    Gastone Canali >http://www.armadillo.it

    Se alcuni post rispondono al tuo quesito (non necessariamente i miei), ricorda di contrassegnarli come risposta e non dimenticare di contrassegnare anche i post utili . GRAZIE!

    Thursday, March 01, 2012 12:22 AM