I want to be able to create a BATCH script that will add a printer locally using the TCP/IP port. I am assuming the arguments needed would be the printers name, driver location (.inf), IP address, and computer name.
Anyone able to help?
You can accomplish this with a few calls to printui - see this page for more information. It sounds like you would want to call
Though I am not certain how to specify a printer via INF file over the network.
A few years ago, I wrote a script to install printers over the network. This script is intended for use with printers shared over samba, so you don't need to specify a driver. If you're trying to add a printer that isn't shared in this way, I'm not sure that this will work. Perhaps you can use this as a starting point though to figure out how to do it.
Simply save this text to a .cmd file and run it if you want to give it a try.