Solved

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

Posted on 2011-02-21
2
669 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 81

Expert Comment

by:David Johnson, CD, MVP
ID: 34945179
look for the modified date
0
 
LVL 12

Accepted Solution

by:
Navdeep earned 500 total points
ID: 34945260
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

Independent Software Vendors: 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!

Question has a verified solution.

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

A safe way to clean winsxs folder from your windows server 2008 R2 editions
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

717 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