Solved

Find out  most recent last saved time for a file in a directory tree - windows server 2008R2

Posted on 2011-02-21
2
630 Views
Last Modified: 2012-06-27
I have a bunch of directories (all with multiple levels of sub-directories). I want to find out which directory (including the sub-dirs) is used the least, by when was the last time a file was saved in any of its sub-directories.

Basically, I want to know the most recent time a file was saved in a directory tree.

Using Windows Server 2008R2.
0
Comment
Question by:freshgrill
2 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
look for the modified date
0
 
LVL 12

Accepted Solution

by:
Navdeep earned 500 total points
Comment Utility
Hi,

You can use powershell command for this

Get-childItem -Path p:\temp -Recurse | Select Name, LastAccessTime, LastWriteTime, DirectoryName

You can also export the data to csv file
Get-childItem -Path p:\temp -Recurse | Select Name, LastAccessTime, LastWriteTime, DirectoryName | export-csv -path FilePath -notypeinformation
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Learn about cloud computing and its benefits for small business owners.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

728 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

13 Experts available now in Live!

Get 1:1 Help Now