Since we didn't have audit active, I had to go with the last modification date. I did that using a powershell script to go trough everything and save the results on a CSV file. Here is the script:
function Get-DocInventory([string]$siteUrl)
{
$site = New-Object Microsoft.SharePoint.SPSite $siteUrl #gets site collection # looping trough webs foreach ($web in $site.AllWebs)
{
# looping trough lists foreach ($list in $web.Lists)
{
# removing lists that are hidden, master page/list template/theme/web part galleries e style libraries
if( $List.Hidden -eq $false -and $list.Title -ne "Style Library" -and $list.Title -ne "Master Page Gallery" -and $list.Title -ne "List Template Gallery" -and $list.Title -ne "Theme Gallery" -and $list.Title -ne "Web Part Gallery")
{
# looping trough items
foreach ($item in $list.Items)
{
# the info I needed $data = @{
"Site" = $site.Url
"Web" = $web.Url
"List" = $list.Title
"ID" = $item.ID
"URL" = $item.Url
"Title" = $item.Title
"Created" = $item["Created"]
"Modified" = $item["Modified"]
}
# cria um objeto com as informacoes
}
}
}
$data = @{
"Site" = $site.Url
"Web" = $web.Url
"List" = "n/a"
"ID" = $web.ID
"URL" = $web.Url
"Title" = $web.Title
"Created" = $web.Created
"Modified" = $web.LastItemModifiedDate
}
New-Object PSObject -Property $data | Select "Site", "Web", "List", "ID", "URL", "Title", "Created", "Modified"
$web.Dispose();
}
$site.Dispose()
}
# command
Get-DocInventory "http://yoursite" | Export-Csv -NoTypeInformation -Path "c:\results.csv"