Hi!!!

I'm trying to create a script to map via GPO (Windows 2003) a Net
Printer (HP 1320n) that has an internal JetDirect configured but i
don't know it....

Can somebody help me?

The IP addres of HP 1320 is: 192.168.101.30
The Host printer name is: Hp1320Rh

Thans a lot!

PD: Sorry with my english... i'm from Spain

Re: Script to map a JetDirect Printer by Franz

Franz
Fri Nov 10 16:08:43 CST 2006

> I'm trying to create a script to map via GPO (Windows 2003) a Net
> Printer (HP 1320n) that has an internal JetDirect configured but i
> don't know it....
> Can somebody help me?
> The IP addres of HP 1320 is: 192.168.101.30
> The Host printer name is: Hp1320Rh


Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddwindowsPrinterConnection "\\192.168.101.30\Hp1320Rh"

Add this line to force the printer to be the default one.

WshNetwork.SetDefaultPrinter "\\192.168.101.30\Hp1320Rh"





Re: Script to map a JetDirect Printer by Nay

Nay
Fri Nov 17 03:06:51 CST 2006

Thanks for you reply... but it doesn't work...

I recived this error:
Line: 2
Character: 1
No valid printer name Code: 800707009

Thanks a lot again!

Franz aRTiglio ha escrito:

> > I'm trying to create a script to map via GPO (Windows 2003) a Net
> > Printer (HP 1320n) that has an internal JetDirect configured but i
> > don't know it....
> > Can somebody help me?
> > The IP addres of HP 1320 is: 192.168.101.30
> > The Host printer name is: Hp1320Rh
>
>
> Set WshNetwork = CreateObject("WScript.Network")
> WshNetwork.AddwindowsPrinterConnection "\\192.168.101.30\Hp1320Rh"
>
> Add this line to force the printer to be the default one.
>
> WshNetwork.SetDefaultPrinter "\\192.168.101.30\Hp1320Rh"