Solved

Installing printer with logon script.

Posted on 2007-03-26
5
317 Views
Last Modified: 2010-04-16
Hey,
Please help.
I need help adding an IP printer to my network.  IP address is 172.16.1.30.  I know how to manually add it via printer wizard.  However, this will be installed on all PCs through a logon script.  Anyway I can get this done?
0
Comment
Question by:jsctechy
  • 2
  • 2
5 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 18793506
Perhaps you'll find this helpful: http://www.jdhitsolutions.com/logonscriptgen/index.htm
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18793529
Otherwise, something a simple as this should do it...

Dim objNet:set objNetwork = CreateObject("Wscript.Network")
objNet.AddWindowsPrinterConnection "\\172.16.1.30"
set objNet = nothing
0
 
LVL 8

Expert Comment

by:jsvor
ID: 18793760
This link will do want you want (and more). I use the info from this site to set default printers for users when they log in also.

http://computerperformance.co.uk/Logon/LogonScript_Printer_Method.htm
0
 
LVL 1

Author Comment

by:jsctechy
ID: 18793768
Hey, Sir.
My logon script is actually in Batch form.  Can I create a .vbs and just paste that into the txt file?
0
 
LVL 1

Author Comment

by:jsctechy
ID: 18793855
I've tried this:
Dim objNet:set objNetwork = CreateObject("Wscript.Network")
objNetwork.AddWindowsPrinterConnection "\\172.16.1.30"
set objNet = nothing

But get an error- invalid name.
The problem I seem to have is that this isn't a shared printer from a print server.  I don't want ppl printing to a server, I want them to print directly to the printer.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question