Windows Vista Forums

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

  1. #1


    imaciscoguy Guest

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

    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 System SpecsSystem Spec

  2. #2


    imaciscoguy Guest

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

    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 System SpecsSystem Spec


Assign IP_x.x.x.x port to default Printer
Similar Threads
Thread Forum
Vista - default printer doesn't stay as default Vista print fax & scan
Can't assign default program Vista General
Changing default http port (80)? Network & Sharing
Vista keeps stealing default status from default printer computer Vista networking & sharing
Creating new Printer-Port and installing new Printer PowerShell