• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

need help dissecting a batch script

can someone help me understand what this batch script is doing?  i'm being told it will add a network printer with the .inf driver located on a file share.  what's it look like to you?  it's not working.....and i'm being told it worked great in the past.  
rundll32 printui.dll,PrintUIEntry /if /b "Ricoh 550" /f "\\\PC_User_SW\English\Prntdrvr\Ps_drvr\Win_2K_XP_VISTA\OEMSETUP.INF" /r "IP_10.10.1.23" /m "E-8100 PCL 6"

Open in new window

  • 2
1 Solution
here is a Microsoft article on it http://support.microsoft.com/kb/314486 , the command "rundll32 printui.dll,PrintUIEntry /?" without the quotes will bring up a display of what all the operands do(not sure if i have the right word, basically all the /x) with the exception of the one listed in that ms article

"Sample of How to Add an IPP Printer

rundll32 printui.dll,PrintUIEntry /b "DisplayPrinterName on http" /x /n "part of the n switch" /if /f %windir%\inf\ntprint.inf /r "http://hostname/printers/sharename/.printer" /m "HP Laserjet 4000 Series PCL"
Note The /x switch is not documented with /?. The /x switch expects /n even though it is not used. Also, you may be using a printer other than the HP Laserjet 4000 Series PCL. The /x flag treats the install as a “Web point and print.” This flag indicates that the printer is a masquerading (masq) printer. A masq printer is partly local printer and partly a network printer. A masq printer receives rich notifications from the remote print server. Without the /x option, the printer is a local printer with a redirected port. It works fine, but it has very limited notifications.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products."

I shall have a look what each of your operators do and post again later
/if install printer using inf file

/b designates the printer name (in this case "Ricoh 550")

/f[file] is where the inf file is located (in this case "\\\PC_User_SW\English\Prntdrvr\Ps_drvr\Win_2K_XP_VISTA\OEMSETUP.INF")

/r[port] is the port name  (in this case "IP_10.10.1.23")

/m[model] is the printer driver model name (in this case "E-8100 PCL 6")

as to it not working, is the inf file still in the same place? can you access the server from the computer? are there any error messages? and does the printer have the ip address ?
sknoll84Author Commented:
thx a lot!

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now