Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Adding a networked printer to a workstation for ALL users!

Posted on 2004-04-24
12
576 Views
Last Modified: 2010-04-11
There must be a simple way for a network administrator or the administrator to a local workstation to add a networked printer for all users of that workstation to use without each of them to add it themselves???? Help please.
0
Comment
Question by:bhettler
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 17

Expert Comment

by:Mike_Carroll
ID: 10908294
You shouldn't have to add it for each user.

Simplest way to set it up is to click on Start, Run in the run box, type: \\workstation\printer<ENTER>

where 'workstation' is the name of the box sharing the printer and 'printer' is the share name of the printer itself. <ENTER> means press the Enter key.
0
 
LVL 1

Expert Comment

by:HynesCo
ID: 10909140
use a login script
0
 
LVL 1

Accepted Solution

by:
mgrass earned 100 total points
ID: 10912443
Correct, create a login script and apply it to a GPO in AD.  Here is a syntax example:

net use lpt1 \\machinename\sharename\ /user:username password /Y


Here is another example I've used in the past:


'// Name: setprint.vbs
'// Description: Add a network printer and make it the default

Set WshNetwork = CreateObject("WScript.Network")

'// Adds the printer. Substitute your server name and printer share.
WshNetwork.AddwindowsPrinterConnection "\\Server\printer"

'// Makes the specified printer the default.
WshNetwork.SetDefaultPrinter "\\Server\printer"

0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:bhettler
ID: 10913513
1st ...for Mike.
one situation we have is a classroom with 4 workstations and the printer is installed locally on one of those machines...and then shared by the other 3.  
Are you saying that all I have to do is to do your suggestion on each of the other 3 machines ONCE only and the printer will show up for any user that logs onto that machine?
ie....type: \\workstation\printer<ENTER>

2nd....for Mike also.  
 Does the same thing work if in a lab invironment we type  "type: \\workstation\printer<ENTER>"  on each machine even though the printers are installed on a printserver if we just replace 'workstation' with the server name?

for the other suggestions...I'm not sure if I am making any sense, but we are trying to get away from loading the printers with a script because in doing so it is becoming necessary to actually load 3 to 4 different printers for each group we create because during the day they may be logging onto computers in 3 to 4 different rooms. They should only be using the printer in  that  particular room.   Needless to say that isn't happing always...they get confused and don't use the printer in that room and their stuff gets printed in different parts of the builiding.


What I was hoping for was a way to load just one particular  shared or networked printer onto  a specific computer so it shows up as the default for that machine  no matter who logs onto that machine.    Maybe Miike's reply already answers that...I'll have to try tomorrow????   thanks.....I'll let you know.
0
 
LVL 1

Expert Comment

by:mgrass
ID: 10913745
The first suggestion only works for users versus machines.  You would have to do that command for each user logging in on that machine.  Afterwards it would be set.

You can however use a script and apply it to a machine account versus a user account.  That way each machine has the script applied regardless of what user has logged on to it.  Based on the scenario you've described, that sounds like it will be your best fit.  

Mike
0
 

Author Comment

by:bhettler
ID: 10913888
Yes,  the solution which seemed obvious to us was to create a group for the computers in a particular room and then run a 'startup script' for that group of computers to load the printer we wish loaded.   Do you have an example of such a script?   The script which works for a users group didn't seem to work.  
Thanks
0
 
LVL 17

Expert Comment

by:Mike_Carroll
ID: 10913915
The \\workstation\printer<ENTER> bit just starts a Windows point and print installation. In most cases, it will bring the driver across from the sharing machine... given that the driver are available... if not, it will ask for the driver. You will need to follow through the wizard but it is a simple procedure and only takes a minute.

Logon scripts are useful in their own ways but why complicate the issue of setting up a few printers? Personally, I wouldn't.

Printservers vary. In most cases, you will need to have both the port driver and printer driver available. Installation will be config dependent but in most cases, it's a one-off per box.
0
 
LVL 1

Expert Comment

by:mgrass
ID: 10914364
If you create a OU and place the appropriate machine accounts into the container, then create a Printer GPO for the OU that should work.  Apply the printer startup script to the GPO.  The same script should work for machines and users equally well.  What's the client OS?
0
 

Author Comment

by:bhettler
ID: 10931930
For mgrass:
I've created a OU and placed a couple of test machines into it.
I used your suggested script and placed it into the OU "startup script' location.   When I reboot the machine it tells me that it's running the startup script ...I get excited...:-)   but then it says there is an error ...the error being that it cannot find the file.   I follow the same procedure as when we are adding a scrpt to the  'login script' area for a user OU.   I know the file is there on the server...but it says it can't find it.

By the way....If I place your vbs script on the actual workstation and then use the registry 'run' area to run that file on startup ....it works fine.   I just would rather be able to creat a group of MACHINES for each individual room and then run that script for everyone or anyone when the machines in that room boot up.
0
 
LVL 1

Expert Comment

by:mgrass
ID: 10931972
Sorry that didn't take you any further.  I'm all out of suggestions... That, in my opinion, should have worked.  
0
 

Author Comment

by:bhettler
ID: 11098355
I ended up using your script and just locating it on the harddrive of each machine.  Then added a line in the registry of each machine in the "run" section to run that script for all who log on.   It works well....so thanks!   I still can't figure out why we couldn't make the script run after placing each machine for a room into a group and then having a "startup script" for that group.   I kept getting an error message.   But a belated thanks to you anyhow!
0
 
LVL 1

Expert Comment

by:mgrass
ID: 11098412
Thanks for the points.  I'm glad you were able to use the script for the workaround - goodluck!
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fabric 1 31
When syspreping a clone machine 7 47
Slow Internet Connection 9 54
VTP servers with 3650 switches 5 24
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

792 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