I'll assume the port creation through scripting is the portion of foreign
You will need a network configuration page printed from your device. Each
device is different so you will need to read the manual if you do not know
how to do this. Locate the hostname or IP for the network card. I'd use
the hostname since this will also get to the device when the IP address
open an elevated command prompt Start /Accessories /Command Prompt right
click, Run as administrator
this should open in c:\windows\system32. Then navigate to
at the prompt type cd printing_admin_scripts\en-us
at the prompt type
cscript prnport.vbs -a -h YOURHOSTNAME -r HOSTNAME
If you have a network card included in tcpmon.ini the port configuration is
read from this file. If the port is not autoconfiged and fails use raw and
9100 (this is the default for HP and Lexmark).
cscript prnport.vbs -a -h YOURHOSTNAME -r HOSTNAME -o raw -n 9100
once the port is created launch the network Add Printer wizard
in the same command windows type
use the port you just created.
Windows Printing Team
Search the Microsoft Knowledge Base here:
This posting is provided "AS IS" with no warranties, and confers no rights.
"SunflowerBabe" <u56546@uwe> wrote in message news:9fd23d353ac85@uwe...
>I am not as computer savvy as you it seems...could you please give me a
> through on how to do this exactly because I have the same problem but your
> answer is like a foreign language to me. LOL Please help!
> Alan Morris [MSFT] wrote:
>>add the port using the vbs script prnport.vbs
>>cscript prnport.vbs -a -h 22.214.171.124 -r PORTNAME
>>If it does not auto configure the settings your device supports, supply
>>settings to the command line (you would need to verify these from the
>>network card documentation)
>>use "printui /ip" from command line to launch the Network Add Printer
>>and select the port from the list
>>The error you describe sounds like one of the core network binaries was
>>replaced. sfc /scannow should have fixed that.
>>[quoted text clipped - 67 lines]