Solved

Adding a networked printer to a workstation for ALL users!

Posted on 2004-04-24
12
557 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
 

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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to connect Vivotek Camera from across the internet 2 38
Route summarization 5 23
Network Connection 5 34
Windows 10 VPN? 6 44
I was recently sitting at a desk at work with one of my colleagues and needed some information on my home computer. He watched as I turned on my home computer, established a remote session into it, got the information I needed and then shut it down …
What is IRC? IRC (Internet Relay Chat) is a form of communication between multiple users. It is available freely to anyone with inernet access. IRC is a great way to communicate with others e.g. There is an IRC channel for Ubuntu Linux, which is fo…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

23 Experts available now in Live!

Get 1:1 Help Now