A
A
Alexander2017-01-31 15:40:36
System administration
Alexander, 2017-01-31 15:40:36

Error loading configuration file using rundll32 printui.dll,PrintUIEntry. How to be?

There is a printer with double-sided printing. We switch it using the command line:

rundll32 printui.dll,PrintUIEntry /Sr /n "Kyocera_FS-4300DN" /a "D:/Duplex.dat"

and
rundll32 printui.dll,PrintUIEntry /Sr /n "Kyocera_FS-4300DN" /a "D:/NoDuplex.dat"

To achieve this, these dat files were previously saved:
rundll32 printui.dll,PrintUIEntry /Ss /n "Kyocera_FS-4300DN" /a "D:/NoDuplex.dat"

Before saving, the pens changed the print setting. Everything works great.
Three machines and three printers worked this way without complaints or errors, but one of them died and had to install a new one with a clean WIN 7x64 Professional (Other machines: win7x86 max and win8.1). And on this new and pristine car, problems began. Unloading goes with a bang, the file with the settings is saved, but it categorically refuses to load. The rundll32 utility itself, when trying to load the settings file, crashes with the error 0x0000000c No matter how I googled zero (I rearranged the driver, installed the old version of the driv, demolished the antivirus, turned off the firewall, went through the registry, found some kind of program to liberate the dll, checked the services. No result, I found that I need to add keys at the end when saving the settings "g d", and when loading them "gd r", example,
rundll32 printui.dll,PrintUIEntry /Sr /n "Kyocera_FS-4300DN" /a "D:/NoDuplex.dat" g d r

In this case, the command works, but the settings on the printer do not change. I'm completely stumped. I will be glad to any thoughts on my problem)
Printers are not shared over the network.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-01-31
@mazart

He asked and answered himself: the matter is exclusively in the bit depth of win7. If the command line is run not from under System32, but from under SysWOW64, then the command works and everything works (this is in the case of win7x64). In the case of win8.1, as I understand it, it is already 64-bit by default and therefore everything works on it. The logic is incomprehensible, the main thing is that it works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question