You can use the prnmngr.vbs script.
It’s located in %SystemRoot%\System32\Printing_Admin_Scripts\en-US for Windows 7 For XP it’s located in windows\system32.
To add printer for all users you use this command:
cscript prnmngr.vbs -ac -p "\\server\printer"