Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 505
  • Last Modified:

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,
0
dguandique
Asked:
dguandique
  • 3
  • 3
  • 2
1 Solution
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now