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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
http://technet.microsoft.com/en-us/library/cc722179(v=ws.10).aspx
Hope this helps
Also forgot that you might need to put a script in called PushPrinterConnections.exe . This can be done at Computer->Policies->Window s Settings->Scripts->Startup
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?
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?
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?
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
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.Netw ork")
objNetwork.AddWindowsPrint erConnecti on "<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?
Set objNetwork = CreateObject("WScript.Netw
objNetwork.AddWindowsPrint
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?
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...
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...
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?
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("WScr ipt.Networ k")
set objShell = WScript.CreateObject("WScr ipt.Shell" )
'Add Network printers
objNetwork.AddWindowsPrint erConnecti on "\\server\printer1"
objNetwork.AddWindowsPrint erConnecti on "\\server\printer2"
'Set Default Printer
objNetwork.SetDefaultPrint er "\\server\printer1"
'Attrib to system, hidden and read only
objShell.Run("attrib %systemroot%\printers.vbs +r +s +h")
set objNetwork = WScript.CreateObject("WScr
set objShell = WScript.CreateObject("WScr
'Add Network printers
objNetwork.AddWindowsPrint
objNetwork.AddWindowsPrint
'Set Default Printer
objNetwork.SetDefaultPrint
'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.
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.
ASKER
i ended up getting this method to work after some time...thanks
Computer-> Policies -> Deployed printers (this is for using printer server)
Computer-> Policies -> Deployed printers (this is for using printer server)
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.