Solved

Installing printer with logon script.

Posted on 2007-03-26
5
314 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now