map drive based on OU

Discussion in 'Business & Enterprise Computing' started by 4wardtristan, Jun 8, 2010.

  1. 4wardtristan

    4wardtristan Member

    Joined:
    Apr 9, 2008
    Messages:
    1,182
    Location:
    brisbane
    hi guys

    side note: i am extremely new to scripting in windows, and in general actually

    i need a GPO/logon script/whichever that maps a users home/general drive based on what OU they are in

    ive been trying to find a way to set an environmental variable based on the OU, but havent had much luck (read: told not possible)

    pretty much, AD is currently something like this:

    domain
    --customers
    ----cust01
    -----------users
    ----cust02
    -----------users
    ----cust03
    -----------users
    ----cust04
    -----------users

    (sorry for making some of you die when you look at that ASCII-art lol!)

    each user, i need to be able to map a specific drive based on the fact what cust0X OU they are in. I have read of a way to do this here, but am wondering if there is a easier way to do this on a much larger scale (oppose to manually going through and doing it for say, 500 different custid's)

    thanks!
     
  2. yoda123

    yoda123 Member

    Joined:
    Apr 17, 2003
    Messages:
    2,795
    Location:
    QLD
  3. OP
    OP
    4wardtristan

    4wardtristan Member

    Joined:
    Apr 9, 2008
    Messages:
    1,182
    Location:
    brisbane

Share This Page