connecting to printers at PC startup
- From: "tree leafs" <treeleafs@xxxxxxxxxxx>
- Date: Wed, 24 Oct 2007 20:07:03 +1000
Hi,
I want to use a group policy to have PCs automatically connecting to
specified printer(s) when the PCs start up. This is what I did:
1. create an OU and move the targeted PC(s) into it;
2. cretae a group policy object and link it to the OU just created. In the
GPO, in computer node -> windows -> script -> startup, add a vbs script like
this:
set objNet = CreateObject("Wscript.Network")
PrinterShare="\\server\sharedprinter"
objNet.AddWindowsPrinterConnection PrinterShare
3. restart the targeted PC. The startup script gets executed - I am sure of
this because if I make any mistakes in the script a warning message will pop
up. However, the printer does not get connected even if the script executed
successfully. What's wrong?
4. If I move a user in to that OU and move the script from computer node's
startup script to user node's logon script. Then logon as that user, the
printer gets connected. However, this is not exactly what I wanted. My
purpose is to connect printers according to PC rather than user. How can I
do that?
Thanks in advance,
.
- Follow-Ups:
- Re: connecting to printers at PC startup
- From: Jorge Silva
- Re: connecting to printers at PC startup
- From: Chris M
- Re: connecting to printers at PC startup
- Prev by Date: Re: Windows 2003 Server Standard Domain Controller multiple NICs
- Next by Date: Re: connecting to printers at PC startup
- Previous by thread: Relationship between group membership and login speed
- Next by thread: Re: connecting to printers at PC startup
- Index(es):
Relevant Pages
|