0

We have an OCE Imagistics cm2520 unit, a big copier that does fax and duplex printing. Currently I'm trying to have our XP workstations print without using a Windows print server, but just using the copier's built-in print server.

From this page and others I managed to get a batch file to add the printer:

rundll32 printui.dll,PrintUIEntry /b "Office Copier" /x /n "Office Copier" /if /f "S:\IT Install\OCE driver\Win2003_PCL\GSRH3.INF" /l"S:\IT Install\OCE driver\Win2003_PCL" /r "IP_192.168.1.200" /m "Generic 25C-1/25C-1P PCL"

However, duplex and fax are disabled/greyed out when you go to print. Before when I had a W2k3 server as the print server, they were enabled.

How can I script it to add the printer with them already enabled?

Kev
  • 984
  • 4
  • 23
  • 46

2 Answers2

0

This page, which has a typo (it should be PrintUIEntry on both /Ss and /Sr) shows you can set and restore settings files. So you can set up the printer how you like, save the settings with /Ss, and then restore them with your batch file after adding the printer:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /Ss /n "printer" /a "file.dat"

and then:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n "printer" /a "file.dat"

However, for some reason the latter one gives me an error:


Printers

Operation could not be completed.

OK

And does not change the settings. But it seems like a potential solution at least...

Kev
  • 984
  • 4
  • 23
  • 46
0

This page also suggested a registry hack, which worked. I did a compare using TextPad on the before and after of the registry branch. Then I had to save as ANSI rather than Unicode.

Kev
  • 984
  • 4
  • 23
  • 46