Tom's Hardware > Forum > Windows XP > Configuration & Customize > How to create a standard TCP/IP port for printer by means ..

How to create a standard TCP/IP port for printer by means ..

Forum Windows XP : Configuration & Customize - How to create a standard TCP/IP port for printer by means ..

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

Hi,

I want to create and configure a standard tcp/ip port on my workstations for
a specific printer by means of commands and a batch file and not its wizard.
Is it possible? If it is what are the commands?

Thanks,
Bijan

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

Check out documentation relating to WMI - Stick this in a VBS file and run
from a BAT file.

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2" )
Set objNewPort = objWMIService.Get _
("Win32_TCPIPPrinterPort" ).SpawnInstance_

objNewPort.Name = "IP_169.254.110.14"
objNewPort.Protocol = 1
objNewPort.HostAddress = "169.254.110.14"
objNewPort.PortNumber = "9999"
objNewPort.SNMPEnabled = False
objNewPort.Put_

http://msdn.microsoft.com/library/ [...] ch_wmi.asp
http://msdn.microsoft.com/library/ [...] rinter.asp
microsoft.public.windows.server.scripting

http://www.microsoft.com/technet/s [...] fault.mspx
http://www.microsoft.com/technet/s [...] fault.mspx

Joseph
IT Analyst

"Bijan Kianifard" <BijanKianifard@discussions.microsoft.com> wrote in
message news:93699C90-3944-489B-B120-72D5D102DB49@microsoft.com...
> Hi,
>
> I want to create and configure a standard tcp/ip port on my workstations
> for
> a specific printer by means of commands and a batch file and not its
> wizard.
> Is it possible? If it is what are the commands?
>
> Thanks,
> Bijan

Reply to Joseph
Tom's Hardware > Forum > Windows XP > Configuration & Customize > How to create a standard TCP/IP port for printer by means ..
Go to:

There are 1121 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them