INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Simple Network Printer Install

Simple Network Printer Install

(OP)
So I am not 100% where this post might fall under if this is wrong please let me know.

I work in for a corporation that involves computer users of varied levels and abilities. We have a print server and in some cases people can add the printer to their computer all by themselves. Others have no clue and we have to visit them either remotly or physically to install the printers for them. Many of the computers are shared and a printer needs to be installed to each profile. Often having to install the printer to multiple users on the same computer. Is there a script or an app that we can drop on their desktop that says "Add a Printer", the user would then click on app and a dialog pop up asking for the network name of a printer. (All printers are currently clearly labeled with a sticker that has it netowrk name ip address model information etc. Including a "if this is broken call this number".) The user would then just simply type in the network name of the printer hit ok and the script would automatically install the printer for them. Some users only need to install 1 printer and some users need to install many printers (4-5). We have attempt to write instructions for installing a network printer but they still manage to screw it up. Any ideas how this script or app might be written to do this? Any help would be great. Thank you in advance.

RE: Simple Network Printer Install

(OP)
Never mind wrote one myself : Just update items in red

strInput = UserInput( "Please enter the network name of the printer you would like to install (example: Printer Name) :" )

Function UserInput( myPrompt )
' Check if the script runs in CSCRIPT.EXE
If UCase( Right( WScript.FullName, 12 ) ) = "\CSCRIPT.EXE" Then
' If so, use StdIn and StdOut
WScript.StdOut.Write myPrompt & " "
UserInput = WScript.StdIn.ReadLine
Else
' If not, use InputBox( )
UserInput = InputBox( myPrompt )
End If

End Function

Dim net
Set net = CreateObject("WScript.Network")
on error resume next
net.AddWindowsPrinterConnection "\\networkPath\"& strInput

' Set the default printer now
net.SetDefaultPrinter "\\networkpath\"& strInput

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close