list files access and modification date/time

Hi Experts
I have a file server running windows 2000 server.
User have lots of files stored on a share and I need to make free space.
How do I list the files that have not been accessed/modified recently? I would like to move or get rid of files and folders that have not been used for a long time.
Thank you,
dguandiqueAsked:
Who is Participating?
 
marek1712Commented:
Do you have a workstation with Windows XP at least? If yes, then we can use PowerShell to do the job.
You have specify the criterium though?

Look at this PowerShell script:
$date=Get-Date; Get-ChildItem -Recurse | Where-Object {$_.LastWriteTime -lt $date.AddDays(-150)}

Open in new window

It'll list files that haven't been modified for AT LEAST 150 days (starting in PWD).
When you specify what you'd like to do exactly we can get it tailored.
0
 
dguandiqueAuthor Commented:
Yes I have windows xp running on my computer.

Could you give an advise on how to get powershell and how to point to the target folders that are in the windows 2000 file server?
Thank  you,
0
 
dguandiqueAuthor Commented:
I have installed power shell and tested the command.
How do I get the last accessed time, for reading.
Thank you,
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
marek1712Commented:
Change LastWriteTime to LastAccessTime.
0
 
FireW0lfCommented:
Or in Windows Explorer, just right click on the column headers, and select to add a column - put a tick/check in "Last Accessed"...

And then obviously just sort by that column
0
 
marek1712Commented:
And if you have hundreds (thousands) subfolders? You'll use GUI to maintain it?
0
 
FireW0lfCommented:
Hahah of course not - I'd use a vbscript to look after it. But the OP didnt mention how many folders his FS had. Most are kept sorted into a sensible order - I keep the root folder limited to Departmental folders, and make the Dept managers look after archiving of old files :-)
0
 
dguandiqueAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.