Answered by:
Files or Items Last Accessed Date

Question
-
I have an intranet site with Sharepoint 2010; Audit log is enabled and trimming data set to 60 days. Is there a way to get the list of all files or items within the site collection with the last accessed date property?
using SQL, Powershell or even custom audit report ...etc
Ali
Monday, June 6, 2016 10:02 AM
Answers
-
Hi IDEASIT,
If you want to get the list of all file or items last modified time, there is a PowerShell script which is intended to get the "LastModifiedDate" property (amongst others) of all sites in your SharePoint farm. The gathered data is exported to a csv file, and optionally sent by email with the report as attachment.
More information, please refer to the link:
https://gallery.technet.microsoft.com/office/SharePoint-200720102013-48c9e2b1#contentc
If you want to get the list of all files or items last view time, you may need to parse the IIS logs.
Or you can create a custom column to store access date when users access the item/file.
Best Regards,
Linda Zhang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Edited by Linda ZLMicrosoft contingent staff Tuesday, June 7, 2016 6:33 AM
- Proposed as answer by Victoria Xia Monday, June 13, 2016 10:43 AM
- Marked as answer by Victoria Xia Wednesday, June 22, 2016 12:19 PM
Tuesday, June 7, 2016 6:30 AM
All replies
-
Hi Ali- check out the following link for info on what you're trying to accomplish:
cameron rautmann
Monday, June 6, 2016 7:58 PM -
The is a site level access; but what I am looking for is the file level view date or access date. Is there any query from SQL level where I can run to get those information?
Ali
Tuesday, June 7, 2016 4:59 AM -
Also, please look into below article which summarizes step-wise instructions to track every critical access/changes made on SharePoint server - https://community.spiceworks.com/how_to/126012-how-to-track-changes-on-sharepoint-server-2013Tuesday, June 7, 2016 5:40 AM
-
Hi IDEASIT,
If you want to get the list of all file or items last modified time, there is a PowerShell script which is intended to get the "LastModifiedDate" property (amongst others) of all sites in your SharePoint farm. The gathered data is exported to a csv file, and optionally sent by email with the report as attachment.
More information, please refer to the link:
https://gallery.technet.microsoft.com/office/SharePoint-200720102013-48c9e2b1#contentc
If you want to get the list of all files or items last view time, you may need to parse the IIS logs.
Or you can create a custom column to store access date when users access the item/file.
Best Regards,
Linda Zhang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Edited by Linda ZLMicrosoft contingent staff Tuesday, June 7, 2016 6:33 AM
- Proposed as answer by Victoria Xia Monday, June 13, 2016 10:43 AM
- Marked as answer by Victoria Xia Wednesday, June 22, 2016 12:19 PM
Tuesday, June 7, 2016 6:30 AM