Solved

list files access and modification date/time

Posted on 2011-03-09
8
495 Views
Last Modified: 2012-05-11
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
Comment
Question by:dguandique
  • 3
  • 3
  • 2
8 Comments
 
LVL 11

Accepted Solution

by:
marek1712 earned 50 total points
ID: 35089479
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
 

Author Comment

by:dguandique
ID: 35097466
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
 

Author Comment

by:dguandique
ID: 35097616
I have installed power shell and tested the command.
How do I get the last accessed time, for reading.
Thank you,
0
 
LVL 11

Expert Comment

by:marek1712
ID: 35100395
Change LastWriteTime to LastAccessTime.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:FireW0lf
ID: 35107047
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
 
LVL 11

Expert Comment

by:marek1712
ID: 35110008
And if you have hundreds (thousands) subfolders? You'll use GUI to maintain it?
0
 
LVL 4

Expert Comment

by:FireW0lf
ID: 35124102
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
 

Author Closing Comment

by:dguandique
ID: 35428874
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now