Author Posts

October 4, 2016 at 3:11 pm

Hi. Hopefully someone can help me. I would like to run a powershell script that will tell me:
1. A list of hidden files, recursively, on a volume. No other attributes should be included (system etc).
2. It should show the date accessed
3. It should be output to a text or csv file that I can then filter or
4. the output should have a "files older than" filter on it.

The eventual outcome of this is to run a delete command on the hidden files over a certain age. To do this the filename should include the full path to the file.

Or any other suggestions!

Thanks for your help

October 4, 2016 at 3:17 pm

This forum is for help with powershell. You have to do the legwork.

October 4, 2016 at 3:19 pm

Sorry, I thought I was asking for help.

October 4, 2016 at 3:51 pm

Post the script that isn't working.

October 4, 2016 at 3:58 pm

 Get-ChildItem . -Attribute H+!S -recurse | select-object lastwritetime,lastaccesstime,directoryname,name > recurse.txt 

The output of this gives me a text file but the directory name and file name fields are shortened to 26 characters each with 3 dots on the end. I would like to have the full path and filenames if poss.