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
I have set up several printers and have one network printer assigned as 'default' printer. I have noticed that this 'default' status for this...
Vista print fax & scan
Can't assign default program
For some reason Vista stopped using Google Sketchup to open files with the SKP extension. (It started using Adobe Reader). If I attempt to...
Vista General
Setting a default printer for the DEFAULT USER
I have a Vista (enterprise) machine that is joined to a domain. There are ~8 printers defined. How do I set which of these printers is the...
Vista print fax & scan
Changing default http port (80)?
Hola! Is there a way to change the default port that http browsing uses? Lately I've been getting terrible lag time when browsing websites (such...
Network & Sharing
printer port
I added a printer and added a tcp/ip printer port. I deleted the printer and would like to delete the port I added.
Vista print fax & scan
Vista keeps stealing default status from default printer computer
My home network consists of 3 XP desktops, 3 XP laptops and now a Vista Home Basic laptop. The "base unit" we'll call it is connected to our HP...
Vista networking & sharing
Creating new Printer-Port and installing new Printer
Hello i found following WSH-Skript at die MSDN-Website. But how can i do this with the powershell? I do not know how to create a new instance of...
PowerShell