Friday, June 06, 2008

MS: Install Print Drivers on Windows Server

To install Print Drivers on Windows Server, Terminal Server or Citrix Servers (just the print driver, not the printer):

1) To install a Driver included in the Windows distribution:

start /wait rundll32 printui.dll,PrintUIEntry /ia /m "HP LaserJet 5" /h "Intel" /v "Windows 2000" /f "%systemroot%\inf\ntprint.inf"

2) To install a OEM Driver NOT included in the Windows distribution:

Extract the driver. Open the oemsetup.inf included with the driver.

Search the Manufacturer section. The manufacturer is Ricoh.

---- oeminfo.inf ----
; The Manufacturer section lists all of the manufacturers that we will
; display in the Dialog box;
[Manufacturer]

%OEM%=Ricoh
---- oeminfo.inf ----

Now search for Ricoh

---- oeminfo.inf ----
; Model sections. Each section here corresponds with an entry listed in the
; [Manufacturer] section, above. The models will be displayed in the order
; that they appear in the INF file.;
[RICOH]
"RICOH Aficio 3035 PCL 5e" = RIC542,USBPRINT\RICOHAficio_3035B463,LPTENUM\RICOHAficio_3035B463,RICOHAficio_3035B463
"RICOH Aficio 3045 PCL 5e" = RIC542,USBPRINT\RICOHAficio_30458661,LPTENUM\RICOHAficio_30458661,RICOHAficio_30458661
---- oeminfo.inf ----

We can see 2 models here, 3035 and 3045.

To install RICOH Aficio 3035 PCL 5e, we can use this script:

start /wait rundll32 printui.dll,PrintUIEntry /if /b "Ricoh 3035" /f "C:\PrnDrivers\RICOH 3035\oemsetup.inf" /r "lpt1:" /m "RICOH Aficio 3035 PCL 5e" /z

1 comment:

Antoine Dubuc said...

Hi,

thank you for this post.

How would you handle conditional logic concerning the creation of a TCP-IP port (or not if its there) for use by the print driver?

Here is my original post.

http://www.msfn.org/board/index.php?showtopic=131202

Thank you, sincerely.

Antoine