Get-SPWebApplication http://changeweburl.com/ | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL | Export-CSV C:\changefilename.csv -NoTypeInformation - This is inventory of all the URLs with Title and URL
Get-SPWeb http://changeweburl/changesite1/changesub-site/ | Select -ExpandProperty Lists | Where { $_.GetType().Name -eq "SPDocumentLibrary" -and -not $_.Hidden } | Select -ExpandProperty Items | Select Name, url, {$_["Created By"]}, {$_["Modified"]} | Export-CSV C:\changefilename.csv - Content Inventory at sub-site level
Get-SPWeb http://changeweburl/changesite1/changesub-site/ | Select -ExpandProperty Lists | Where { $_.GetType().Name -eq "SPDocumentLibrary" -and -not $_.Hidden } | Select -ExpandProperty Items | Select Name, url, {$_["Created By"]}, {$_["Modified"]} | Export-CSV C:\changefilename.csv - Content Inventory at sub-site level
No comments:
Post a Comment