jonnyknowsbest
Technical User
I use the following script to install a printer connection to a printer stored on a web server:
rundll32 printui.dll,PrintUIEntry /b "\\ /if /f %windir%\inf\ntprint.inf /x /n "Printer1" /r " /m "HP LaserJet 4050 Series PCL 6" /u
rundll32 printui.dll,PrintUIEntry /y /n "\\
rundll32 printui.dll,PrintUIEntry /Xs /n "\\ attributes +direct
The first 2 lines work fine to install the printer and set it as the default. The third line also works to set the "Print directly to the printer" flag, but gives me a "Operation could not be completed" error, does anybody know why this happens?
rundll32 printui.dll,PrintUIEntry /b "\\ /if /f %windir%\inf\ntprint.inf /x /n "Printer1" /r " /m "HP LaserJet 4050 Series PCL 6" /u
rundll32 printui.dll,PrintUIEntry /y /n "\\
rundll32 printui.dll,PrintUIEntry /Xs /n "\\ attributes +direct
The first 2 lines work fine to install the printer and set it as the default. The third line also works to set the "Print directly to the printer" flag, but gives me a "Operation could not be completed" error, does anybody know why this happens?