-2

I have a very strange issue. on one of my 2008R2 file servers that has been around for years

yesterday about half of the folders in one of the shares started showing hex values instead of the folder names. the subfolders still show their correct names.

example ,, share/ {14270683-1693-1584-1493-948150471693}\finance PO

this is affecting about 1000 folders on a 7tb share drive All other folders in that share are listed by their names.

windows 2008R2 fiber connected SAN, Symantec AV, SCCM client installed.

MadHatter
  • 81,580

1 Answers1

0

This is not the answer, but I couldn't fit it in the comments... you need to change the to the location of where those hidden folder with {} are.

What this script does is find all the {} (which are hidden, or should be), and then it takes the .lnk and look at where it points to (recycle bin, explorer.exe).

This is in PowerShell:

$path = "<PATH TO FILES>" 
$hiddenDir = Get-ChildItem -Path $path -Directory -Attributes H 
$links = Get-ChildItem -Path $path -Filter *.lnk   

$sh = New-Object -COM WScript.Shell 
foreach($link in $links){ 
        $tarLink = $sh.CreateShortcut($link.FullName) | Select-Object FullName, Arguments 
        $tarLink -match 'explorer "{(\d*\-)*\d*}' | Out-Null 
        $foundString = $Matches[0].toString().Replace('explorer "',"") 
        $originalName = $link.FullName.ToString().Replace(".lnk","") 
        if($hiddenDir -match $foundString){ 
                Rename-Item "<PATH TO FILE>\$foundString" $originalName 
        }       
}
shinjijai
  • 416