diff. logon script for diff. sites

Discussion in 'Active Directory' started by yurez, Feb 13, 2006.

  1. yurez

    yurez Guest

    is it possible to assign different logon scripts for some user in 2003 AD?
    if user log on on workstation in Site A, he have network disk
    \\server_1\share, and if user log on workstation in site B, he have network
    disk \\server_2\share
     
    yurez, Feb 13, 2006
    #1
    1. Advertisements

  2. Yes this is possible both in the way of linking group policies to site
    objects, and as well in the code of the script itself.
     
    chriss3 [MVP], Feb 13, 2006
    #2
    1. Advertisements

  3. yurez

    yurez Guest

    hm
    in my case, disk mapping using logon scripts must be assigned in User
    Configuration part of GPO (disk mapping needs user credentials and i cant map
    a network disk when computer is just powered on and there are no logged on
    user)
    and as i know, GP assigned to site changes settings on _computers_ in this
    site (so i can change settings in Computer Configuration only)

    can you tell me, how can i locate a computer's site where user is log in?
     
    yurez, Feb 13, 2006
    #3
  4. yurez

    Richard W Guest

    Hi Yurez,

    Are the scripts written in VBScript? If so, you could consider adding some
    code to your script in which you check which side it is being run. An example
    in which you check the site the script is currently being run:

    Set objADSysInfo = CreateObject("ADSystemInfo")
    SiteName = objADSysInfo.SiteName ' the SiteName variable now contains the
    name of the site.

    Hope it helps.
     
    Richard W, Feb 13, 2006
    #4
  5. User settings are applied to users in a site when a GPO with user settings
    defined is linked to that site. It is not just computers. Users are also
    site aware (based on the computer on which they are logged on).
     
    Paul Williams [MVP], Feb 13, 2006
    #5
    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.