none
PrintUIEntry /Sr failed when restore a shared printer

    Question

  • A printer was connected to a PC named R09760 with usb. I shared the printer and rename it as M126.

    In another PC named PC-17892B,  I could see the M126 from

    explorer \\R09760

    .

    Then I wantted to add the M126, So I run

    rundll32 printui.dll,PrintUIEntry /in /n\\R09760\M126

    . Later, I could see a printer at the Control Pannel.

    I wantted to save the setting, So I run

    rundll32 printui.dll,PrintUIEntry /Ss /n\\R09760\M126 /a "D:\2.dat"

    . Later, I could see the file D:\2.dat.

    But when I restored the setting from file by the cmd

    rundll32 printui.dll,PrintUIEntry /Sr /n\\R09760\M126 /a "D:\2.dat" r

    , it failed with error

    unable to complete operation (0x0000000c)

    .

    How could I restore the settings of a shared printer? Thank you!

    unable to complete operation (0x0000000c)
    Thursday, June 28, 2018 7:49 AM

All replies