Feb 28 2023 08:59 AM
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
Mar 01 2023 04:08 AM
@MarieSpence Check if you can get this information using PnP PowerShell or CLI for M365:
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