I am unable to remove temporary attribute for multiple files in DFSR Health Report. The issue is with long path and filename with the following command. For short path and file names, it works fine.
Get-childitem D:\Data -recurse -force | where {$_.attributes -match "temporary"} | ft fullname,lastwritetime,attributes -autosize
To see the attribute I used fsutil and specified the entire path and file name with 8.3 name. Unfortunately, it looks like powershell does not like 8.3 names.
Is there an equivalent method in DOS? or get PowerShell to read long file path or 8.3 name?
(Moving/Renameing files is not a good solution at the moment)