I'm currently assigning printers to users via the OU they reside in in AD.
E.G. to attach John Smith in Sales to the default sales printer I use the following script attached to the OU in which sales users are placed (user config \ windows settings\ scripts(logon / logoff) \ logon\ %path%\batchfile.bat)
rundll32 printui.dll,PrintUIEntry /in /n \\server\printer
rundll32 printui.dll,PrintUIEntry /y /n \\server\printer
this adds the printer and sets it as default.
Is there a way to check if the printer is already installed and at that point skip the installation / and setting it as default? This would make the script more effiecient and prevent any preferences for default printer being overwritten.
My batch file skills are rusty, but presume this can be done with relevant IF statement and :sections.
Any help much appreciated!
p.s. there's useful info on printui @