pkonto
Thu Sep 16 02:43:48 CDT 2004
Dear Steaven
thank you for your response but we use the same script that exists
in your link
Our problem is with the statement
oNetwork.AddWindowsPrinterConnection sPrintPath
We run the script from the Domain Group Policies
located in Computer Configuration - Windows settings -Scripts
StartUp/Shut down.
Any idea?
Panagiotis Kontogiannis
"Steven Burn" <pvt@noyb.com> wrote in message
news:uv1ZgEymEHA.3868@TK2MSFTNGP11.phx.gbl...
>
http://surl.co.uk/?820
>
> Original URL:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht
> ml/wsmthaddwindowsprinterconnection.asp
>
> --
>
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
>
> "pkonto" <pkonto@ced.tuc.gr> wrote in message
> news:uAoN85xmEHA.1172@TK2MSFTNGP10.phx.gbl...
> > Hi all,
> >
> > we have a W2K3 AD domain and we try to to automatically install printers
> in
> > the domain W2K workstations.We use the following startup script applied
in
> > the appropriate domain Group Policy Objects:
> > ---------------------
> > Option Explicit
> > Dim oNetwork, sPrintPath
> > Set oNetwork = CreateObject("WScript.Network")
> > sPrintPath = "\\printer_server\printer_shared_name"
> > oNetwork.AddWindowsPrinterConnection sPrintPath
> > oNetwork.SetDefaultPrinter sPrintPath
> > Set oNetwork = Nothing
> > -----------------------
> > During the workstation startup, the following error appears:
> >
> > Line:5
> > Col:1
> > Error: The system cannot find the file specified.
> > Code:80070002
> > Source: Null
> >
> > Any clue?
> >
> > Thanx in advance
> > pkonto
> >
> >
> >
> >
> >
> >
>
>