Forked from michaellwest/FindAndDownloadRecentChangeList.ps1
Created
December 29, 2017 21:36
-
-
Save patelcp/10daa80ce51aa725b24bba9317e2b74a to your computer and use it in GitHub Desktop.
Queries a list of items that have been modified after a certain date. Generates a CSV and downloads from the server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$startDate = [datetime]"02/24/2016" | |
$days = ([datetime]::today - $startDate).Days | |
Get-ChildItem master:\content\home -Recurse | | |
? { $_."__updated" -gt (Get-Date).AddDays(-$days) } | | |
Where-Object { "Resource Reference","Sitemap","AddOns","Market Generic Page" -notcontains $_.TemplateName } | | |
Select-Object -Property ID, Name, "__updated", "__updated by", "TemplateName" | | |
Export-Csv -Path "$($SitecoreDataFolder)\page-changes.csv" | |
Send-File "$($SitecoreDataFolder)\page-changes.csv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment