I have a situation where I have multiple folders, with the same name, at various places with in a single tree, that need to all have the same set of permissions. These permissions need to be different from thier parent folder. So I need to find all the folders and then rename them.
This is further complicated by the fact that most of the ones I need are too long for a powershell command to find them. When I ran
gci -Filter "Folder Name" -Recurse -Path "D:\x\y\z" -Directory | select-object FullName | Export-Csv C:\Output\folderlist.csv
it returned file name length errors and the resulting file was empty even though when I tried it on a test situation it worked.
I'm just moving into the level of writing these so please excuse my overlooking anything obvious.