Adding printers to logon script

Discussion in 'Software' started by Toasty, May 26, 2010.

  1. Toasty

    Toasty Byte Poster

    120
    5
    27
    Hi

    is it possible to add network printers to the logon.bat file like you can network drives so when a user logs on the printers are all ready to use?

    Thanks
     
    Certifications: A+, Network+, MCDST, MCSA
    WIP: MCSE, CCNA
  2. Gingerdave

    Gingerdave Megabyte Poster

    990
    44
    74
    Not using batch files you can do it by VB script but VB scripts for log on are not recommended as they are about as stable as a 3 year old on crack.
     
    Certifications: A+,MCP, MCDST, VCP5 /VCP-DV 5, MCTS AD+ Net Inf 2008, MCSA 2008
    WIP: MCSA 2012
  3. simongrahamuk
    Honorary Member

    simongrahamuk Hmmmmmmm?

    6,205
    136
    199
    add the vbs script to a startup script in group policy.

    A simple vbs printer script would look something like this:

    Code:
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection "\\server\printer"
    objNetwork.SetDefaultPrinter "\\server\printer"
     
  4. Toasty

    Toasty Byte Poster

    120
    5
    27
    Thanks for your help simon i will edit your script with server/printer name and add it to GP and see what happens.
     
    Certifications: A+, Network+, MCDST, MCSA
    WIP: MCSE, CCNA
  5. Modey

    Modey Terabyte Poster

    2,397
    99
    154
    You can if you use a program to add the printer for you. Con2Prt has been around for years and is still very useful.

    http://ss64.com/nt/con2prt.html

    You could always use Group Policy to control and add the printers. You would need Server 2003 R2 or higher for that though.
     
    Certifications: A+, N+, MCP, MCDST, MCSA 2K3, MCTS, MOS, MTA, MCT, MCITP:EDST7, MCSA W7, Citrix CCA, ITIL Foundation
    WIP: Nada
  6. LukeP

    LukeP Gigabyte Poster

    1,194
    41
    90
    Not sure if that's the same thing Modey suggested but with 2008 domains you can configure printers and network drives (and many other things) using Group Policy via the the Preferences node.
     
    Last edited: May 26, 2010
    WIP: Uhmm... not sure
  7. westernkings

    westernkings Gigabyte Poster

    1,432
    60
    107
    This.
     
    Certifications: MCITP:VA, MCITP:EA, MCDST, MCTS, MCITP:EST7, MCITP:SA, PRINCE2, ITILv3
  8. Modey

    Modey Terabyte Poster

    2,397
    99
    154
    Not the same no, but an alternative. The method I mentioned doesn't rely on client side preferences which need a patch on XP machine (but are natively supported on Vista and W7 IIRC).
     
    Certifications: A+, N+, MCP, MCDST, MCSA 2K3, MCTS, MOS, MTA, MCT, MCITP:EDST7, MCSA W7, Citrix CCA, ITIL Foundation
    WIP: Nada
  9. Toasty

    Toasty Byte Poster

    120
    5
    27
    Thank you Modey i will try this tomorrow
     
    Certifications: A+, Network+, MCDST, MCSA
    WIP: MCSE, CCNA
  10. ThomasMc

    ThomasMc Gigabyte Poster

    1,507
    49
    111
    I've been having a little mess about with this today, so close to getting it to work :D, have some rep.
     
    Certifications: MCDST|FtOCC
    WIP: MCSA(70-270|70-290|70-291)
  11. nugget
    Honorary Member

    nugget Junior toady

    7,796
    71
    224
    These guys have a handy logon script generator that produces a vbs script for you. From memory it also does printer mapping.
     
    Certifications: A+ | Network+ | Security+ | MCP (270,271,272,290,620) | MCDST | MCTS:Vista
    WIP: MCSA, 70-622,680,685

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.