Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13565

Removing Temporary Attributes

$
0
0

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)


Viewing all articles
Browse latest Browse all 13565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>