Question Locked

Forcing a refresh of Network Printer Settings from Print Server

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello Guys,

Is there a way via scipting to force a pc to refresh their local printer settings from the print server ? We have enabled Duplexing as the default for printing ( conserve that paper ! :) ) for our HP Laserjet printers on the Print Server, but if a user goes on their local printer settings and unchecks duplexing, it will not re-pull that device setting from the print server unless you delete and then re-add the printer on the local machine. Is there a way to have the printer settings pulled from the server without have to delete and then re-add the locally installed network printer ?

2 replies

by pag07

I found a way of accomplishing what you want to do. It does require you to delete and re-add the printer though. But that's not an entirely a bad thing. It can be automated to via a logon script you set through Active Directory.
I'll assume you already know how to use logon scripts and how to implement them in Active Directory.

Just copy the below commands into a batch file, have it run as a logon script, and problem solved!

The command is

RunDll32.EXE printui.dll,PrintUIEntry /dn /n \\PrintServer\PrintShare
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\PrintServer\PrintShare

You'll have to add quotation marks before to this command if your print server and/or print share names have spaces in them.

The first command (/dn switch) will delete the printer.
The second command (/in switch) will add the printer.

Of course, you'll have to specify each of the printers you want to "refresh" so as to receive the new settings. It may be easier to group all of the printer deletions together in the batch file first.Then do the same for adding the printers.

See the below link for more info on the rundll32 command. Running, "RUNDLL32 printui.dll,PrintUIEntry /?" at the command line will give you all of the available commands for printui.dll

http://www.ss64.com/nt/rundll32.html

Let me know if this works or if you have found an easier method of doing this.

This discussion is closed to new replies.