cscript prnport.vbs -d -s [servername] -r [portname]
replacing the server name and the port name with appropriate values, usually the port name is IP_XX.XX.XX.XX, where XX.XX.XX.XX is the IP of the printer.
documentation of a learning curve
cscript prnport.vbs -d -s [servername] -r [portname]