Avatar of instaIT
instaITFlag for United States of America

asked on 

Need to find a way to collect the last access date of files on the file server. It's windows 2003 Enterprise.

I need to find a way to report on last accessed date of files on our file share.  We're chewing up lots of disk space and my hunch is that some it hasn't been accessed in 5+ years.  I'd like to implement a data lifecycle management policy and don't want to spend a fortune.  How can I collect this info with either a script, or some type of program?  Jdisk report by jgoodies is exactly what I would be looking for, but it can't report on last access date, so that doesn't give me an accurate picture.  Thoughts?
Windows Server 2003Server HardwareStorage

Avatar of undefined
Last Comment
Shift-3
Avatar of Shift-3
Shift-3
Flag of United States of America image

You should be able to do this using the DIR command with the /T:A switch.
http://www.ss64.com/nt/dir.html
 
 The example below lists all files in the folder and all subfolders, ordered by last-accessed date and writes the output to a text file.



dir "c:\my share" /A:-D /O:D /T:A /S > report.xt

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo