I am constructing a powershell script to query the existence of archived files within the folder that the files are archived to.
EMC’s disk extender moves the file from the live storage to archive storage and leaves a stub/link to the file.
You can still list the archive stub in the directory tree and the file still appears to be the same size but in reality it is an archive stub probably 1k in size.
The file attribute(s) of an archive stub give the value O
I need to query the files in the live folder where attribute of the file = O
then compare the list to my archive directory on another server outputting the files that do not exist on my archive where an archive stub exists on the live storage.
basically I need to know how to query the file attribute to retrieve O and do a compare.
This function (taken from here) will return either true or false, depending on your O attribute
You can use something like this: