logon script + add printer

Home Forums Scripting Windows Script Host logon script + add printer

This topic contains 3 replies, has 4 voices, and was last updated by Avatar gforceindustries 9 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Avatar
    tulik23
    Member
    #150426

    Hi

    I would like to know how can i add printer to Security Group

    We have 2 Terminal Servers 2008 and some security groups per devision
    lets say Marketing & Sales , and i would like that every time a user from the Marketing will login to the Terminal his printer (PrnMarket) will be installed
    and when Sales , PrnMarket , will be installed

    this is part of our login.vbs

    i would like to add
    Printer by OU

    10x

    #344666

    Re: logon script + add printer

    I’m sure Google will answer your question for you. There will be plenty of code samples showing how to connect to a shared printer and how to test group membership.

    Rems
    Rems
    Moderator
    #227804

    Re: logon script + add printer

    tulik23;213959 wrote:
    how can i add printer to Security Group

    1. We have security groups per devision, i would like that every time a user from one of the devisions login to the Terminal his printer will be connected.
    2. i would like to add Printer by OU

    Are both terminal servers in the same farm? then create a new user logon script. Configure the script in the User Configuration part of the GPO linked to the Terminal Servers OU. Use Loopback processing of group policy.

    In the script use conditional printer mapping based on group membership.

    Rems

    Avatar
    tano
    Member
    #283627

    Re: logon script + add printer

    I think that in your 1st post you misplaced the printers.

    marketing security group -> prntmktg
    sales security group -> prntsales

    I’ve always used this way of mapping printers, by group membership.

    now im starting to migrate all my logon scripts to group policy preferences.

    If you have a Windows 2008r2windows 7 client in your domain and not much vbscript knowledge, you can use the group policy preferences to map network drivesprinter instead of a login script using a gui.

    btw, i’m attaching my login script, it check the user membership even on nested security groups.

    Bye

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.