-2

I'm trying to find files not modified in the last 60 days on a Windows 2012 R2 server. The built-in search ability in Windows doesn't offer this ability and I have installed the Windows Search Service as a feature but nothing useful. Thanks in advance for your tips.

2
  • 5
    What have you tried? We're not here to do your work for you. And honestly, just pasting your question title in to Google will probably give you exactly what you need. Commented Jul 14, 2016 at 19:03
  • yep, I tried that Commented Jul 14, 2016 at 23:06

2 Answers 2

3

You want the LastWriteTime property.

You could see my somewhat recent answer here using this property to basically write your script. Based on modifying that (but not testing it), something like:

$searchroot="[root path you're searching in]" $age=(get-date).AddDays(-60) Get-ChildItem $searchroot | where-object {$_.LastWriteTime -ge $age } | ForEach-Object { #Do something. Print it, store it in a variable, whatever you want to do with these files once you've found them. } 
0

I figured it out. You type in "modified:5/15/2016 .. 7/14/2016" in the second field of the search dialog window. It's the field where you would type the file name. This will output all files that have been modified in the last 60 days. Thanks.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.