Delete Printer Connections using PrintUI gives error Unable to delete the per machine printer connection. Operation could not be completed (error 0x0000071a)
i'm attempting use printui dll (printui.exe) add , delete per-machine printer connections shared domain member print server to/from domain client computers. randomly (25% of time) error "unable delete per machine printer connection. operation not completed (error 0x0000071a)." code 0x0000071a may mean "the remote procedure call cancelled" (rpc_s_call_cancelled). means nothing me , not understand why rpc fail on attempts, work on subsequent attempts.
- print server windows 2008 r2 sp1 latest recommended hotfixes.
- clients windows xp sp3 or windows 7 sp2 latest recommended hotfixes.
seemingly inexplicably , randomly our support stafff these errors when run script add or remove printers. not matter printer server or printer share (i have multiple print servers , printers).
i adding , deleting connections in command script using these commands:
add: rundll32 printui.dll printuientry /ga /c\\%1 /n%2 /gw >> %3
delete: rundll32 printui.dll printuientry /gd /c\\%1 /n%2 /gw >> %3
i have tried adding print spooler restarts before or after printui commands, not seem help. in fact, if add spooler restart seems increase failure rate on windows 7 clients , decrease failure rate on windows xp clients.
i have tried circumvent problem deliberately attempting add or delete invalidly named printer share ("\\doesnotexist\ignoreerror") throws pop-up error message must clicked "ok" bypass. error message "unable add per machine printer connection. local print spooler service not running. please restart spooler or restart machine." incorrect error , has nothing incorrectly named print server share in add or delete commands of printui.
hi george, see had detailed conversation on per machine connections printui few months ago.
printui pops general error dialog when fails not know why. rpc cancelled error remote machine. either spooler busy busy expect 1723, or not reachable.
c:\>winerror 0x6bb
1723 rpc_s_server_too_busy <--> 0xc0020018 rpc_nt_server_too_busy
c:\>winerror 0x71a
1818 rpc_s_call_cancelled <--> 0xc0020050 rpc_nt_call_cancelled
from previous post enabled remote rpc endpoint that's not going issue. can verify spooler service running on client using sc.exe command. assume spooler typically running can start sc command well. rpc error network latencies. ps can absolutely add bogus print share "printui /ga /n\\yagmoth555\perkins /u /gw /q" i'm @ home , don't have remote target.
c:\>sc \\clientpc query spooler
service_name: spooler
type : 110 win32_own_process (interactive)
state : 4 running
(stoppable, not_pausable, ignores_shutdown)
win32_exit_code : 0 (0x0)
service_exit_code : 0 (0x0)
checkpoint : 0x0
wait_hint : 0x0
alan morris windows printing team
Windows Server > Print/Fax
Comments
Post a Comment