HOW TO ADD A PRINTER FOR ALL USERS (PER MACHINE CONNECTION) – PrintUI.dll
1-) Log in as “Administrator” in Windows
2-) Browse once \\Print to enter the credentials of someone who has access to print server.
3-) Open “CMD” and type the following command to add a printer connection on the machine.
Rundll32 printui.dll PrintUIEntry /ga /n\\Print\PRIXXXX
HOW TO REMOVE A PRINTER FOR ALL USERS (PER MACHINE CONNECTION) – PrintUI.dll
1-)Repeat the steps “1” - “2” and “3” as explained above.
Enter the following command to delete a per connection printer from the machine.
Rundll32 printui.dll PrintUIEntry /gd /n\\Print\PRIXXXX
After these steps, you have to reboot the computer.
Next time a user with an Active Directory account connects to this computer, the user will have all the printers that were added with this method.