Solved

Installing printer with logon script.

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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