I'm using PowerShell scripts to manage the permissions on our fileservers. In general this works pretty well but sometimes directories are renamed. This does of course not affect the permissions but the script is refering to a database where the wanted permissions are stored. When a directory is renamed the assigned permissions cannot be associated with that directory anymore.
In this situation it would be nice to be able to identify a directory based on filesystem information not based on the name of the directory. Is there a way to do this?
The fileservers are running Windows Server 2012 and we are using NTFS as a filesystem.