rundll "Printer runndll command failed"

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

I'm trying to automate some printer installs and capture the printer
settings. I'm trying to use rundll32 printui.dll,PrintUIEntry command to
capture the printer settings in a file that I can use during the installation
process. The command I'm using is rundll32 printui.dll,PrintUIEntry /Ss /n
"<printer name>" /a "<location to save .dat file>" I've tried the command
with and without a "d" (no quotes) at the end and I keep getting "Printer
User Interface, Printer command failed.. < the command > Operation could not
be completed"
 
I have admin rights and I've even logged in as Administrator and tried it
with no luck. I've tried the same command on 1 W2K PC, 1 W2K laptop and 1 WXP
Laptop. I am able to install the printers using rundll32
printui.dll,PrintUIEntry /if /b "<printer name>" /f "<Inf file location>" /q
/r "TCPIP Port Name>" /m "<Printer model in the inf>" /z /u. Is there
something about needing an administrator pack?
 
I'm out of suggestions. I just know that it fails the way you described if
I tried as user. I did not execute any other switches. I assume you have
write access to the destination location.

rundll32 printui.dll,PrintUIEntry /Ss /n "<printer name>" /a "<location to
save .dat file>"
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks for the help - you got me going in the right direction. I was trying
to point the output file to /tmp and was receiving the failure. I let command
create the file right without a path in the statement (it went under C:/) and
it worked just fine.
 
Back
Top