If you are not using print servers to manage printer installs and need to script the install of networked workgroup printers, you can use these two simple commands to get the job done. We use the combination of these two commands in a single Deployment Server job with great success. (Note that these work for Windows XP (not 2000) and have not been tested with Vista):
cscript //NoLogo %SYSTEMROOT%\system32\prnport.vbs -a -r IP_192.168.1.100 -h 192.168.1.100 -o raw -n 9100
Notes:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "Lab Printer HP2300" /f \\%DSSERVER%\express\printers\HP\2300\hpc2300b.inf /r "IP_192.168.1.100" /m "HP LaserJet 2300 Series PCL 5e"
In Altiris Deployment Solution, create a job with two Run Script tasks, one for each of the above steps. Copy in the text of each command into the "Run this Script" sections. This works for us using all the job defaults, but you may want to add more to the job like testing for XP before installing.