Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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:


Operation could not be completed.


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

share|improve this answer
up vote 0 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.