I am preparing to move a complete document library from a network drive to OneDrive and SharePoint, but before I can do that, I would like to clean up old files.
In my folders there are more than 100.000 files going back 6-8 years or so. Is there an easy way to extract from file explorer a list of files that have not been moditied or opened in e.g. 3 years? Including data on creation date, last modified date, author, last modified by, and the location of the file (folder).
You can try using a script like this in PowerShell, then working with the CSV file it creates in Excel to find the data you need. It won't have everything you asked for, but should give you some data to work with. Hope that helps!
That is interesting, I don't think PowerShell should have issues with a "-" in the name. I did notice that I didn't allow for that script to search down below the one level of the folder you list by name. You can add the "-recurse" parameter to the command to search all levels below just the top level. Hope this helps!