Login script drive mapping problem: multiple offices, one domain, different mapping

Discussion in 'Scripting' started by David Lewis, Dec 1, 2003.

  1. David Lewis

    David Lewis Guest

    Ok I got a unique user here with a problem
    We have two offices connected via wan
    Each office has its own NT 4.0 domain
    Most users in office 1 stay in office 1
    and users in office 2 stay in office 2 except
    this one user who splits his time between the offices.
    In office 1 when a user logs in drive
    I: is mapped to \\Dell-Nas-02\CAD
    J: is mapped to \\Dell-Nas-01\CAD
    In office 2 its flipped

    I: is mapped to \\Dell-Nas-01\CAD
    J: is mapped to \\Dell-Nas-02\CAD

    All work is done on J: drive regardless of office
    and the I drive is the other office's drive.

    Now problem user loggs into domain1 all the time regardless
    of office. Most users in office2 log into domain2 except problem user.

    Now when problem user is in office2 his drive mappings are are
    mapped like office1 instead of office2.

    Without redoing how he logs in or redoing the sceme of things how
    can I differentitate between the two offices and flip the drive mappings
    in a login script. I don't want multiple username/passwords and remember
    the domain name stays the same.
    David Lewis, Dec 1, 2003
    1. Advertisements

  2. Hi

    As you don't have AD, you can't use AD's Site definitions, but you can "cook"
    your own based on IP ranges:

    Torgeir Bakken (MVP), Dec 1, 2003
    1. Advertisements

  3. David Lewis

    Sean Guest

    Base it on the logonserver variable that is set.

    If the logonserver = Office1 Domain Controller

    map drive blah blah

    If logonserver = Office 2 domain controller

    map blah blah

    That way you can run the same logon script for both environments aswell

    Sean, Dec 3, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.