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
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
On Jun 11, 2:40*pm, imaciscoguy <imacisco...@xxxxxx> wrote:I have this but I would like an hta to show the existing ports to
> 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
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
********************
| 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 |