My school district uses a xxx.kix file in the netlogon of our DCs to proide a run a couple of .vbs files every time someone logs in, as well as map drives according to something in each user’s description. (don’t blame me, it’s been in place since 1999) For example, if a user has a description field of [5th grade art teacher (teacher)] they will get mapped drives based on the (teacher) portion of their description. Also for students the description would be [student (2023)] where the (year) is their graduation year.
I can build the GPOs to map the proper drives and run the .vbs scripts, but regretfully I’m useless when it comes to scripting! I need help coming up with a script that will do the following:
- scan AD for what’s in the description field
- add users to group that matches what’s in the parenthasis
a. so (teacher) would be moved to the Teachers group and get the same/appropriate mapped
- edit the description of the user and remove the (teacher) from the description field
I don’t even care if I have to edit the script each time and manually change the search from (teachers) to (2023), (2024), (custodians) etc. each time… in fact that might even be better so it slows things down and I can make sure that I have all of my GPOs built correctly before mass moving all of the users in AD all at once…
Thank you in advance for any and all help with this!!!