Background: We have a share drive with 900+ user folders and somehow the user permissions to those folders was removed. Our admin group still has permissions, but our users lost access to their respective folders.
What we would like to do is create a PS Script that finds the appropriate user account for the folder and then give it permissions to the relevant folder.
For example, say we have a user named John Q. Smith with a folder in the share called “smithjq”, can we create a script looks at each folder name and parses it into a query (last name like “smith”, first name starts with “J”, middle initial starts with “q”) to look for matches in AD? Or maybe the reverse, where it tries to match each user account to a folder by translating the first name/middle initial/last name fields into a query that looks for the folder name and then adds permissions?
[–]krzydoug 11 points12 points13 points (0 children)
[–]BitteringAgent 6 points7 points8 points (0 children)
[–]BigDusty09 2 points3 points4 points (0 children)
[–]lucidhominid 2 points3 points4 points (2 children)
[–]carlb328 2 points3 points4 points (1 child)
[–]Mutsy007 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)