Ok - I tried the following script (same as the one above with a few modifications). It does add the tcp/ip port for me, but when i add a printer to that port, all of my print jobs fail. Any ideas?
Thanks,
Andrew
Set WSHNetwork = WScript.CreateObject("WScript.Network")
set shell = WScript.CreateObject( "WScript.Shell" )
CompName = shell.ExpandEnvironmentStrings("%COMPUTERNAME%")
Set objWMIService = GetObject("winmgmts:\\" & CompName & "\root\cimv2")
Set objNewPort = objWMIService.Get("Win32_TCPIPPrinterPort").SpawnInstance_
objNewPort.Name = "IP_150.142.153.200"
objNewPort.Protocol = 1
objNewPort.HostAddress = "150.142.153.200"
objNewPort.PortNumber = "9999"
objNewPort.SNMPEnabled = False
objNewPort.Put_