Solved

list files access and modification date/time

Posted on 2011-03-09
8
497 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 11

Expert Comment

by:marek1712
ID: 35100395
Change LastWriteTime to LastAccessTime.
0
 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows 7 system recovery 5 69
Hibernate on windows 10 18 158
Windows Security Event ID to check for Service account usage 3 176
Determine if SQL is installed in Server 2008 R2 4 97
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…
This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

821 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