I am creating a batch file to add printers to users in our domain and am hitting a slight snag in the lines.
Here is the batch file for one of our user profiles:
-------------------------------------------------------------------------
rundll32 printui.dll,PrintUIEntry /in /n "\\PRNTSVR01\P1-MAINT-2035n"
rundll32 printui.dll,PrintUIEntry /in /n "\\PRNTSVR01\P1-ACCT-HP9000uni"
rundll32 printui.dll,PrintUIEntry /y /in /n "\\PRNTSVR01\P1-AEDE-5500pcl"
rundll32 printui.dll,PrintUIEntry /in /n "\\PRNTSVR01\P1-LAB-PANA8060pcl"
-------------------------------------------------------------------------
From what I've read about the switches, '/y' should set that printer to the default printer. Though when I go back to look at the final results, all printers in the file have been added and the selected printer was not set to the default printer.
Any idea as to how or to fix this or why it did not work? Any answers would be appreciated.