Jump to content

Installing a printer driver with Rundll32


Recommended Posts

Hello and greeting from Portugal to everyone!

I'm trying to restore settings to a printer from a *.dat file using the following command:

rundll32 printui.dll,PrintUIEntry /Sr /n "printername" /a "datfile.dat"

The error I always get is "Operation could not be completed."

I believe there is something wrong with my command line but I just can't figure it out!

The printer installation works fine using this method.

By the way...I'm using Windows 2008 R2.

Can someone please help me?

Best Regards,

Soultaker

Link to comment
Share on other sites


What kinds of settings are you trying to set with the .dat file? You might be able to achieve the same with the .vbs print configuration scripts inside the Printing_Admin_Scripts folder in the system32 directory.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...