Jump to content

custom adm file to add network printers via group policy


Recommended Posts

i'm trying to add network printers via group policy...

i would like to add the "hrprinter" to the h.r. ou in active directory (2000)

so when ever a h.r. person logons to a new pc or what ever...she has that printer...

i don't wanna do this via login script...

i found the registry settings for this printer installed...

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Printers\Connections\,,server1,hrprinter]
"Server"="\\\\server1"
"Provider"="win32spl.dll"

any help would be appreciated!!

Edited by net_user
Link to comment
Share on other sites


I myself am still in search of the ultimate mapping printer script.. I have a few that work but none that map based on group membership/site location dynamically. Hopefully someone here will have one that will take care of it all..

As far as doing it via an adm file.. prolly not tooooo possible.. only because there is more to adding a printer then a couple registry settings.. however there is hope.. and I dont have it installed right now.. but when playing with Vista server.. There was a drive and printer mapping option in the group policy editors... maybe someone can shed some light.. or maybe i will install it and attempt to find the source of those options...

Link to comment
Share on other sites

I'll refer back to KiX again for this one... :D

Select
Case InGroup("group_name1")
AddPrinterConnection("\\server\printer1")
AddPrinterConnection("\\server\printer2")
SetDefaultPrinter("\\server\printer1")
Case InGroup("group_name2")
AddPrinterConnection("\\server\printer1")
AddPrinterConnection("\\server\printer2")
SetDefaultPrinter("\\server\printer2")
Case InGroup("group_name3")
AddPrinterConnection("\\server\printer3")
AddPrinterConnection("\\server\printer4")
SetDefaultPrinter("\\server\printer3")
Case InGroup("group_name4")
AddPrinterConnection("\\server\printer3")
AddPrinterConnection("\\server\printer4")
SetDefaultPrinter("\\server\printer4")
EndSelect

As you can see, you can add multiple printer connections and then specify which one is the default printer.

Link to comment
Share on other sites

You know... I was actually trying to add something to one of my drive mapping scripts that I have and actually noticed that there was some printer stuff in it also.

This script will Map a printer/network drive based on group membership.

I know it is still not an adm file or just GPO but it does work if you dont have Vista Server or 2k3R2

http://lazynetworkadmin.com/content/view/7/6/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...