none
How to auto assign home directory drive letter in active directory and logon scripts

    Question

  • I have a some 150 computers and 1000 users in my network and I manage them using Active Directory. Now each computer has different drive letters assigned to the local disks and removable disks. So when I wanted to create a home folder, I was able to choose from various drive letters under the profile tab --> connect to option of the user. But even when I chose Z:, some users have z: assigned to their removable disks. I can't assign d: or h:, since some computers have close to five partitions and removable disks plugged in. So, is there any way to assign the drive letter automatically based on the available drive letters in a particular computer.

    Also, I have set some logon scripts for most of the users. Now if the computer is disconnected from the network, and the user logs on to the computer locally, will the scripts still run?


    Thanks and Regards, Radhakrishnan

    Monday, June 18, 2012 9:29 AM

Answers

All replies

  • You can achieve this by using group policy preferences.

    http://blogs.technet.com/b/askds/archive/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership.aspx

    Script method

    http://blogs.technet.com/b/heyscriptingguy/archive/2007/09/20/how-can-i-dynamically-show-available-drive-letters-in-a-list-box.aspx

    Depends where the script is residing, if its in network share it will not work.


    Awinish Vishwakarma - MVP - Directory Services

    My Blog: awinish.wordpress.com

    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Monday, June 18, 2012 9:38 AM
  • I would suggest you give your comapny and organizaed announcement.  On July 16, 2012 the z drive will be assigned to your home drive, if you are cuurently using this please reassign.  Keep the info coming and write a script to inspect who is using the z drive.  To do this just write a script to see who has a mapped z drive and output the contents to a network location (Use a unc location so you don't have any conflicts) and append to it from all locations.  Once the time has arrived to a map delete on the z drive followed by the map location with a persistenance flag setting on the mapping.

    You need to do this, to keep things consistent.  Your scripts will become cumbersome without this and you need to be able to predict common settings in your network.

    If you set the persistence flag, the mapping should stay even if the users isn't connected to the network, but unless the physical connection is available the mapping will only serve as a place holder.

    --
    Paul Bergson
    MVP - Directory Services
    MCITP: Enterprise Administrator
    MCTS, MCT, MCSE, MCSA, Security+, BS CSci
    2008, Vista, 2003, 2000 (Early Achiever), NT4
    http://blogs.dirteam.com/blogs/paulbergson  Twitter @pbbergs
    Please no e-mails, any questions should be posted in the NewsGroup. This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, June 18, 2012 11:53 AM
  • So what happens to the scripts if the computer is disconnected from the network and the user logs on. The user will still be able to log on locally. But will the scripts work. I have placed the scripts in sysvol folder in my dc.

    Thanks and Regards, Radhakrishnan

    Monday, June 18, 2012 1:02 PM
  • Scripts are stored in NETLOGON shared folder on DC. If the connection gets failed scripts will not be processed.

    However if there is a Group policy tattoing for client system then the changes will be present on the client systems Even if the network connection is disconnected,

    More on Group policy tattoing.

    http://www.gpoguy.com/FAQs/Whitepapers/tabid/63/articleType/ArticleView/articleId/5/Understanding-Policy-Tattooing.aspx

    Regards,

    _Prashant_


    MCSA|MCITP SA|Microsoft Exchange 2003 Blog - http://prashant1987.wordpress.com Disclaimer: This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Monday, June 18, 2012 1:15 PM