I am seeing the behavior the OP describes.
-
Test dossier avec two subfolders:
-
Rename #1 via fichier dossier:
-
Result of step #2:
-
Search: kind:Folder:
-
Rename #2
-
Result of step #5 (note the attribute change and unchanged fichier système dossier):
-
Contents of desktop.ini in #2:
[.ShellClassInfo]
LocalizedResourceName=Ordinary Folder II -Renamed
As I (and seemingly others) were unaware of this behavior, Je ne sais pas of any fix". The workaround suggested by @John, exiting search avant renaming, seems the best short-term bet.
Vous n'avez pas need to supprimez le desktop.ini fichiers to have the dossiers display their filesytem names, clearing the ReadOnly attribute for the dossier will prevent processing du desktop.ini fichier. This PowerShell snippet will recursively clear the attribute for any dossier that contains a desktop.ini fichier (starting avec the current fonctionnel répertoire):
gci desktop.ini -Recurse -Force | ForEach{
$folder = Get-Item $_.DirectoryName
$folder.Attributes = $folder.Attributes -band -not [IO.FileAttributes]::ReadOnly
}
And this will définissez le attribure for same:
gci desktop.ini -Recurse -Force | ForEach{
$folder = Get-Item $_.DirectoryName
$folder.Attributes = $folder.Attributes -bor [IO.FileAttributes]::ReadOnly
}