How to auto assign home directory drive letter in active directory and logon scripts
-
Monday, June 18, 2012 9:29 AM
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
All Replies
-
Monday, June 18, 2012 9:38 AMModerator
You can achieve this by using group policy preferences.
Script method
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.- Proposed As Answer by Meinolf WeberMVP Monday, June 18, 2012 1:19 PM
-
Monday, June 18, 2012 11:53 AMModerator
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.- Proposed As Answer by Meinolf WeberMVP Monday, June 18, 2012 1:19 PM
-
Monday, June 18, 2012 1:02 PMSo 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:15 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.
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.
- Marked As Answer by radhakrishnan88 Tuesday, June 19, 2012 6:00 AM

