+ Post New Thread
Results 1 to 13 of 13
Windows Server 2008 R2 Thread, Network printing, not using active directory? in Technical; Hi there, The problem we have is that due to the way our active directory OU's are setup we cannot ...
  1. #1

    Join Date
    Nov 2009
    Posts
    35
    Thank Post
    15
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Network printing, not using active directory?

    Hi there,

    The problem we have is that due to the way our active directory OU's are setup we cannot assign printers via active directory. This way we have to log on and off several users and modify the registry on each pc manually and individually which takes a lot of time.

    The print server we have is Server 2008 R2 and our clients are all XP based.

    I just wondered if there was a quick and easy way to apply default printers to a computer quickly and efficiently either from the server or even the client say a quick setup program or complete working registry that we could import?

    Any ideas?

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,341
    Thank Post
    624
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414
    vb script?

    Ben

  3. #3
    TheLibrarian
    Guest
    Assuming you are using standard print queues, there is a command shell utility available from Microsoft called CON2PRT.

    I think it's part of the Windows 2000 Resource Kit.

    Used in the login script it can add / remove network printers connected to server shares and set a network shared printer as default.

  4. #4

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180
    The wiki is your friend... Printer Addition Based on Location

  5. Thanks to Ric_ from:

    Darryl_Wilcox (1st February 2010)

  6. #5

    Join Date
    Nov 2009
    Posts
    35
    Thank Post
    15
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Read the wiki and it's very helpful, thank you.

    However I do have a question, although it probably sounds stupid, you could put this in a GPO in the Computers Active Directory group, and it will apply to all my sub groups of computers yes? And I'm assuming as you can have a random group after a group that monitors the first 4 characters you could have another group in there monitoring the first 5 letters as well?

  7. #6


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 434 Times in 353 Posts
    Rep Power
    126
    Quote Originally Posted by Ric_ View Post
    The wiki is your friend... Printer Addition Based on Location
    We use a method similar to this, works very well.

  8. #7

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180
    @Darryl_Wilcox: See the 'split' section at the bottom of that page for another example or inspecting the string. It's all just simple VBScript - there's more examples at www.technet.com

    You run the script as a login script. Printer settings are a 'per user' setting.

  9. #8
    eddyc's Avatar
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    432
    Thank Post
    98
    Thanked 47 Times in 43 Posts
    Rep Power
    21
    We use a KIX script to deploy printers, it can deploy based on user groups as well as machine OUs.

    All staff get the staff room connected (but not as default) and their faculty printers mapped as well (but not as default) then the printer for the room they are logging into as default.

    Students just get the printers for the room they are logging into and set as default - if you would like to see a copy of the script, let me know

  10. Thanks to eddyc from:

    Darryl_Wilcox (2nd February 2010)

  11. #9

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Well if it's 2008 you can use GPPs - slap one at the AD root to cover all your machines and use pretty much any targeting you can imagine.

  12. Thanks to PiqueABoo from:

    Darryl_Wilcox (2nd February 2010)

  13. #10

    Join Date
    Nov 2009
    Posts
    35
    Thank Post
    15
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks ect, it would be nice to see a copy of the script if that is possible please?

    PiqueABoo, I will have a look at GPP.

  14. #11
    eddyc's Avatar
    Join Date
    Aug 2008
    Location
    Bristol
    Posts
    432
    Thank Post
    98
    Thanked 47 Times in 43 Posts
    Rep Power
    21
    ;#############################################
    ;# SET UP PRINTERS BASED ON GROUP MEMBERSHIP #
    ;#############################################

    ; ##############################################
    ; # SET UP PRINTERS FOR ALL STAFF (Staff Room) #
    ; ##############################################
    IF INGROUP("STAFF")
    ? "You are in the group 'STAFF'"
    $Rcode = ADDPRINTERCONNECTION ("\\SERVER24\STAFFRM$")
    ENDIF

    ; ##################################
    ; # SET UP PRINTERS FOR PE FACULTY #
    ; ##################################
    IF INGROUP("PE")
    ? "You are in the group 'PE'"
    $Rcode = ADDPRINTERCONNECTION ("\\SERVER24\PEOFFICE$")
    $Rcode = SETDEFAULTPRINTER ("\\SERVER24\PE Office HP2015n")
    ENDIF


    ;###############################################
    ;# DIM TO LOOK UP ACTIVE DIRECTORY INFORMATION #
    ;###############################################

    Dim $objSysInfo
    $objSysInfo = CreateObject("ADSystemInfo")


    ; ##############################
    ; # SET UP PRINTERS FOR A05 OU #
    ; ##############################
    If InStr($objSysInfo.computername,"ou=A5") > 0
    ? "Your PC is in 'A05'"
    $Rcode = ADDPRINTERCONNECTION ("\\SERVER24\A05$")
    $Rcode = ADDPRINTERCONNECTION ("\\SERVER24\A05C$")
    $Rcode = SETDEFAULTPRINTER ("\\SERVER24\A05 HP2600n MONO")
    EndIf

    ; #################################
    ; # SET UP PRINTERS FOR A9/A10 OU #
    ; #################################
    If InStr($objSysInfo.computername,"ou=A9A10") > 0
    ? "Your PC is in 'A9/A10'"
    $Rcode = ADDPRINTERCONNECTION ("\\SERVER24\A9$")
    $Rcode = ADDPRINTERCONNECTION ("\\SERVER24\A9C$")
    $Rcode = SETDEFAULTPRINTER ("\\SERVER24\A9-A10 HP2600n MONO")

    EndIf



    This is just a short snippet of the script - the actual script is massive!
    But hopefully this will give you the idea. Most of all KIX is free!

  15. Thanks to eddyc from:

    Darryl_Wilcox (2nd February 2010)

  16. #12

    Join Date
    Mar 2008
    Location
    Cape Town
    Posts
    110
    Thank Post
    8
    Thanked 14 Times in 14 Posts
    Rep Power
    15
    I second the use of GPP, we made use of it here after our migration, and it has worked like a real charm so far. The targetting feature as well is pretty darn amazing. It certainally saved us worrying about writing logon scripts.

  17. #13
    Richie1972's Avatar
    Join Date
    Apr 2006
    Location
    Blackburn
    Posts
    239
    Thank Post
    2
    Thanked 6 Times in 6 Posts
    Rep Power
    18
    I "third" the use of GPP.
    I've now got only four group policies with users and computers put into a load of groups to make targetting easier:
    1. Printers targetted to users/computers
    2. Software targetted to computers
    3. Registry settings and file copying targetted to users/computers
    4. local admin rights for computers targetted to members of staff in appropriate depts

    The only reasons I've got more than one policy are that there is no way to target IE proxy settings or WSUS group settings (although I suppose this could be done via registry...)


    Richie

SHARE:
+ Post New Thread

Similar Threads

  1. active directory
    By bart21 in forum Windows Server 2000/2003
    Replies: 1
    Last Post: 4th January 2010, 08:24 PM
  2. Replies: 0
    Last Post: 6th April 2009, 10:26 PM
  3. active directory
    By MrPstv in forum Windows Server 2000/2003
    Replies: 5
    Last Post: 26th March 2009, 07:26 PM
  4. Active Directory
    By Neville in forum Windows
    Replies: 6
    Last Post: 25th June 2008, 03:24 PM
  5. Replies: 7
    Last Post: 31st January 2008, 12:17 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •