locked
CUPS Printer added using command prompt is not working with authentication RRS feed

  • Question

  • Friends,

    I have a CUPS server setup in Linux.I want to add this printer to my windows programmatically. Manually I am able to add.By searching various forums I found the following command:

    rundll32 printui.dll,PrintUIEntry  /if /b "TestPrinter_With_Auth" /f %windir%\inf\ntprint.inf /r "https://username:pasword@ipp.devCups.com/printers/Printer" /m "HP Color LaserJet 2500 PCL6 Class Driver"

    I could install Printer using this command. But I couldn't Print to CUPS as it is not recognizing the credentials. I get access denied.

    Any suggestion to achieve this programmatically. 

    Thanks in Advance 
    Eldho John
    • Moved by Bill_Stewart Friday, January 26, 2018 3:14 PM Unanswerable drive-by question
    Wednesday, December 6, 2017 5:36 AM

All replies

  • Friends,

    I want to add a shared cups printer (<g class="gr_ gr_22 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="22" id="22">ipp</g>) to programmatically. The printer has authentication. 

    I can easily do that manually from the Add Printer Wizard.

    I want to achieve this programmatically. I review forum & able to do add printer using: rundll32 printui.dll,PrintUIEntry /if /b "MyPrinter" /f %windir%\inf\ntprint.inf /r https://ipp.*****.com/printers/MyPrinter; /m "HP Color LaserJet 2500 PS Class

    Driver"

    But this approach doesn't give entry to the registry to the following:

    path: Computer\HKEY_CURRENT_USER\Printers\Inetnet Print Provider\Ports\https://ipp.*****.com/printers/MyPrinter

    I cannot create myself as I don't know the encryption used by Microsoft.

    Is there any way I can create this programmatically. 

    Regards

    Eldho John

    • Merged by Bill_Stewart Wednesday, December 6, 2017 3:39 PM Duplicate
    Wednesday, December 6, 2017 5:24 AM
  • Friends,

    I have a CUPS server setup in Linux.I want to add this printer to my windows programmatically. Manually I am able to add.By searching various forums I found the following command:

    rundll32 printui.dll,PrintUIEntry  /if /b "TestPrinter_With_Auth" /f %windir%\inf\ntprint.inf /r "https://username:pasword@ipp.devCups.com/printers/Printer" /m "HP Color LaserJet 2500 PCL6 Class Driver"

    I could install Printer using this command. But I couldn't Print to CUPS as it is not recognizing the credentials. I get access denied.

    Any suggestion to achieve this programmatically. 

    Thanks in Advance 
    Eldho John
    • Merged by Bill_Stewart Wednesday, December 6, 2017 3:37 PM Duplicate
    Wednesday, December 6, 2017 5:31 AM
  • You have now posted this same question three times.  This will not get you and answer.

    \_(ツ)_/

    Wednesday, December 6, 2017 5:50 AM
  • You have now posted this same question three times.  This will not get you and answer.

    \_(ツ)_/

    Wednesday, December 6, 2017 5:50 AM
  • You have now posted this same question three times.  This will not get you and answer.

    \_(ツ)_/

    Wednesday, December 6, 2017 5:50 AM