Does anyone know of a utility (or does anyone know how to write a script) that can work on Windows 7 and Windows XP (it could be two separate utilities/scripts) and can:
1) Remove any TCP/IP printer ports on a given IP address
2) Add a new TCP/IP printer port on that IP address
3) Add the printer on that port and install the driver from a network path to a .inf file
You can assume the script will be run as administrator.
If it relies on a utility, ideally it would be one that comes installed with Windows, but if not that might still be fine.
This is not being used on a Windows domain, so unfortunately some potentially easy solutions along those lines aren't available.