SharePoint Online View changes

Copper Contributor

Hi everyone,  

 

I have had a good hunt online for a powershell command to see who is changing views in SP Online

 

I found the following but it does not work with SP Online.  Anyone know how i can get this info to work?  or know a better command to see change log and who?

 

#Set these two variables accordingly
$WebURL = "https://systalitservices-admin.sharepoint.com/"
$ViewURL = " https://systalitservices.sharepoint.com/sites/FinanceAdminTeam/Lists/Engagements/AllItems.aspx"

#Get the Web
$web = Get-SPWeb $WebURL

#Get the View File
$ViewFile = $web.GetFile($viewURL)

Write-Host "Created By: " $ViewFile.Author
Write-Host "Created on: " $ViewFile.TimeCreated

Write-Host "Modified By: " $ViewFile.ModifiedBy
Write-Host "Modified On: " $ViewFile.TimeLastModified

1 Reply

@MarieSpence Check if you can get this information using PnP PowerShell or CLI for M365:

  1. PnP PowerShell: Get-PnPView 
  2. CLI for M365: spo list view get 

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs