MSFN Forum: custom adm file to add network printers via group policy - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

custom adm file to add network printers via group policy Rate Topic: -----

#1 User is offline   net_user 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 351
  • Joined: 02-June 05
  • OS:Windows 7 x86
  • Country: Country Flag

  Posted 03 March 2006 - 11:22 AM

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!!

This post has been edited by net_user: 03 March 2006 - 11:27 AM



#2 User is offline   chilifrei64 

  • How do you like your Chili?
  • PipPipPipPipPip
  • Group: Members
  • Posts: 995
  • Joined: 16-February 05

Posted 03 March 2006 - 05:20 PM

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...

#3 User is offline   nmX.Memnoch 

  • MSFN Master
  • Group: Moderator
  • Posts: 2,086
  • Joined: 15-September 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 March 2006 - 07:47 PM

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.

#4 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,936
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 March 2006 - 10:41 PM

Windows Server 2003 R2... :)

#5 User is offline   chilifrei64 

  • How do you like your Chili?
  • PipPipPipPipPip
  • Group: Members
  • Posts: 995
  • Joined: 16-February 05

Posted 04 March 2006 - 09:25 AM

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://lazynetworkad...ntent/view/7/6/

#6 User is offline   net_user 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 351
  • Joined: 02-June 05
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 04 March 2006 - 12:29 PM

View Postcluberti, on Mar 3 2006, 10:41 PM, said:

Windows Server 2003 R2... :)



at the moment i can't upgrade my dc to 2003....

the dc at the root level is still on 2000

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy