• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Assign IP_x.x.x.x port to default Printer

I

imaciscoguy

#1
Can I be helped? I have several IP_10.6.x.x Printer ports and one
printer.
Can I be helped to assign one of those ports to the Pinter with a
script?

Thanks for any help,
Cisco
 

My Computer

I

imaciscoguy

#2
On Jun 11, 2:40 pm, imaciscoguy <imacisco...@xxxxxx> wrote:

> Can I be helped? I have several IP_10.6.x.x Printer ports and one
> printer.
> Can I be helped to assign one of those ports to the Pinter with a
> script?
>
> Thanks for any help,
> Cisco
I have this but I would like an hta to show the existing ports to
choose from.
******************
strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root
\cimv2")

Set colPrinters = objWMIService.ExecQuery _
("Select * From Win32_Printer Where DeviceID=' Printer to
Assign'")

For Each objPrinter in colPrinters
objPrinter.PortName = "IP_10.6.x.x"
objPrinter.Put_
Next
********************
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)