Add Users to Security Groups based on Company Field
Posted on 2010-01-06
Good afternoon Experts,
We have multiple independent locations that have their own "utilitty" servers for WSUS, AV updates, etc that update the local PCs from the server, and then all the utility servers update to a master server at our datacenter.
I am trying to create home directory/my documents redirect to the local utility servers, that replicate to the master server at our datacenter. What I have for the users at each location is a 3 digit code in their company field in their active directory profile designating their location. I also have created groups for all of those users locations. What I need is to create a script checks the users company field for that code, and adds the user to the appropriate group. Once I have that I can create the folder logon scripts to point to the correct local server for their home folders.
I can create the logon script, but I need a script that I can run nightly to adjust group membership based on that company field.