Set default printer with batch file script
For some reason QuickBooks seems to like changing the default printer on some workstations. Haven’t found the cause yet but decided to put in this work-around to make everyone happy. Added this to a login batch file that runs on the system to reset the default printer for each local computer:
rundll32 printui.dll,PrintUIEntry /y /q /n “Printer name”
Note that the PrintUIEntry appears to be case sensitive as it was giving me errors when I had it all lower case. Obviously change Printer Name to the actual name of the printer.
December 9th, 2011 at 1:33 am
can you please tell me how to use this command with network printer.
Thank you.
December 9th, 2011 at 10:03 am
Should be the exact same usage. This is not to add the printer but to set it as the default printer. Just use the command as above and replace “Printer name” with the actual name your network printer is setup with on the computer. For example, on my system I have a HP LaserJet 3005 that is a network printer, it’s listed as LJ3005 in my printers. If I wanted this to be the default printer I would use the command:
rundll32 printui.dll,PrintUIEntry /y /q /n “LJ3005″
Hope that helps.