Solved

Installing printer with logon script.

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

16 Experts available now in Live!

Get 1:1 Help Now