#Powershell script | items created/updated by user in sitecore last n number of days
The below script helps you to get all items created/updated
by you in last n number of days. 
Open PowerShell ISE in sitecore and run this with admin
privilege ( Your user must be administrator)
$path
="master:/sitecore/content/"
$items
= Get-ChildItem -Path $path -Recurse | 
            Where-Object
{ $_.__Updated -gt [datetime]::Now.AddDays(-100) -and $_."__Updated By" -eq "sitecore\abc" } 
ForEach
($item in $items) 
{
   
Write-Host $item.ID $item.Paths.Path
}
PS: -100 will give you item updated in last 100 days
Comments
Post a Comment
Please Give Some Comment