Get-SPOSite / LastContentModifiedDate - Details

Super Contributor

Whenever you trigger a get-sposite with details of a SPO Site (Powershell), you get the property "LastContentModifiedDate" back.


I'm wondering what this property is all about because i see for several Sites an exact timestamp (in the middle of the night where i know for sure that none of my users are working:)


In the attached screenshot you see a timestamp of 1:56am

--> so multiple Sites are showing this timestamp




Can i rely on that property whenever i want to detect if a User has modified something within a Site ?

Are there any Backend O365 Processes in place which COULD influence this timestamp ?


4 Replies

Hello Stefan,

This shows the date and time in UTC format (probably the reason why it shows midnight for you) when the content of the site was last changed. So any site activity that makes a change in the content database add to this.




Hope this helps!

thank  you annesh


well i know that this property gets changed whenever a user modifies something in the site.

but what i dont understand is, why i see a timestamp in the middle of the night where i know for sure (because it is a test site) that nothing has been changed by anyone


so i believe that certain processes in the background are influecing this property which makes it almost useless to detect last user modifications....right ?


opinions welcome

best response confirmed by Stefan Fried (Super Contributor)

I opened a Microsoft support ticket last year because I wanted to know what triggered the date modified to change (ticket # 116063014358281).  We have several custom code solutions that upload documents/reports weekly or daily, and those sites weren't always showing as being modified.


Turns out that our code wasn't triggering the modified date to change because we weren't populating the user agent string on our request.


This is actually the way we'd want it so our code doesn't make stale sites look active.


Hope this helps.

@Stefan Fried 

Have you found a solution for this? I've been meaning to use this as a way to monitor onedrive personal backups but I come across the same issue where some background processes are intervening.