Because you’re running this as a logon script, that’s actually pretty easy: you can use the ADSystemInfo object to determine the distinguished name of the user who just logged on: Set objSysInfo = CreateObject(“ADSystemInfo”) Because there are two issues to deal with, let’s take our usual tack and show you how to do step 1, show you how to do step 2, and then bring them both together for a grand finale that actually performs the task in question.įor starters, you need to determine which groups the user belongs to before you can actually do that however, you need to determine who the user is in the first place. First, you need to determine which groups a user belongs to second you need to map a drive based on the user’s membership in a particular group. Considering the fact that this question has been asked by approximately 3,755,392 of our readers – oops, there’s another one make that 3,755,393 of our readers – we decided it might be a good idea for us to answer it. Hey, Scripting Guy! How can I map drives in a logon script based on a security group each user belong to?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |