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
Solved

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

Posted on 2011-02-21
2
657 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 80

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
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…

840 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