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 problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista - default printer doesn't stay as default Freddie Kang Vista print fax & scan 15 18 Apr 2010
Can't assign default program MikeH Vista General 8 28 Sep 2009
Changing default http port (80)? Zoloft Network & Sharing 3 09 Oct 2008
Vista keeps stealing default status from default printer computer e.t. Vista networking & sharing 0 21 Aug 2007
Creating new Printer-Port and installing new Printer Jens Schulze PowerShell 3 11 Oct 2006