The easiest way that I know of is to use the rundll32.exe command to directly enter into the printui.dll. The following syntax would add a per machine printer connection to a printer called "sales" on a server called "print" to a computer called "machine1": rundll32 printui.dll,PrintUIEntry /ga /c\\machine1 /n\\print\sales /j"LanMan Print Services"
This command is great because the printer connection is per machine rather than per user, which means that anyone logging on to that workstation will get the printer. Using the printui.dll basically puts you at the console of the workstation.
For the complete syntax on how to use printui.dll run this at the command prompt:
rundll32 printui.dll,PrintUIEntry /?
For logon scripts some find using the prnmgr.vbs file that comes in the ResKit to be easier. However, this requires that a dll called "prnadmin.dll" be copied and registered with regsvr32 on the each machine that uses it. Hope this helps.