Link to home
Start Free TrialLog in
Avatar of CCLCLS
CCLCLS

asked on

windows 7 printers installed by computer not user?

running win 7, 64bit. we use roaming profiles. trying to use GP or something else, a script maybe if it is fast enough...to install printers for a computer, not a user. and not have printers follow the user at all. this way, if you travel to a different room, you can use that printer, and dont have to pick/install. is this possible?

i can currently do this easily using XP....i have a script that installs a shared printer for all users that use the computer and the printers dont follow the user....i can't figure it out yet for win 7.

thanks
Avatar of Patrick Bogers
Patrick Bogers
Flag of Netherlands image

You can do this very easy if you have the printer role installed.

This video on youtube lets you see how this role can create the GPO based on printers per user OR printer per machine. Hope you find it interesting.
ASKER CERTIFIED SOLUTION
Avatar of TimMurp
TimMurp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Take a look at the KB article as it illustrates how to setup machine based printers via GPO...
http://technet.microsoft.com/en-us/library/cc722179(v=ws.10).aspx

Hope this helps
Avatar of TimMurp
TimMurp

Also forgot that you might need to put a script in called PushPrinterConnections.exe. This can be done at Computer->Policies->Windows Settings->Scripts->Startup
Avatar of CCLCLS

ASKER

so if i have a bunch of rooms that each have a printer i dont want to setup separate GPOs to deploy the printers...

right now with XP i just run a script, one time....not at startup or anything, and it installs the printer on that computer for any user that logs in, and printers dont follow users....

but with 7 it doesnt work....but i dont want to deploy printers by GPO....can it be done with computer name? not GPO? or is there a similar script that can just be run?

if i have to create GPOs then i need another 50+ GPOs, each one with one computer in it?
How how the printers hooked up? Networked or directly into the computer?

If it networked it would be more difficult. But if it is directly into the computer, you could just deploy the driver in a GPO to the 50+ and it will detect it on start up.

Can you up load the script you have now?
Avatar of CCLCLS

ASKER

rundll32 printui.dll,PrintUIEntry /ga /n "\\printserver\printer" /j "LanMan Print Services"
pause


above is an example of the XP script...

they are all network printers
You could write a vbs with the following and run remotely / manual on the machine

Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "<path.to.printer.and.name>"

Example: http://www.puryear-it.com/blog/2012/10/19/installing-printers-using-a-windows-logon-script/

there is also a IFmember command for looping. How do the printers get IPs and are they on the print server?
Avatar of CCLCLS

ASKER

static IPs on print server.
i dont want logon script though...

the example i gave is not logon script. it installs the printer on the computer for any user....it is run one time by the admin to install the printer...
Avatar of CCLCLS

ASKER

i am able to deploy the printer via GPO by computer account, but it only works for administrators, doesnt work for standard users....thouhgts?
Avatar of CCLCLS

ASKER

Tim, if possible please post a script that will install printers for all users. the script below works but only for the admin running it.....all other users see no printers.....this was so easy under XP.....deploying via GP adds tons of time to the login time.....


set objNetwork = WScript.CreateObject("WScript.Network")
set objShell = WScript.CreateObject("WScript.Shell")

'Add Network printers
objNetwork.AddWindowsPrinterConnection "\\server\printer1"
objNetwork.AddWindowsPrinterConnection "\\server\printer2"

'Set Default Printer
objNetwork.SetDefaultPrinter "\\server\printer1"

'Attrib to system, hidden and read only
objShell.Run("attrib %systemroot%\printers.vbs +r +s +h")
Sorry for the delay, I have been swamped.

That is a different GPO

Computer Configuration -> Policies -> Administrative Templates -> Printers : Point and Print Restrictions
Setting: Enabled

Enable for all users by adding them.  You might want to do a little research on Point and Print restrictions before moving forward but it should give them the ability to install a networked printer.
Avatar of CCLCLS

ASKER

i ended up getting this method to work after some time...thanks

Computer-> Policies -> Deployed printers (this is for using printer server)