I want to list all webs in one site collection via powershell and adapted this script from the internet:
Get-SPWebApplication http://site | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, ParentWebID, LastItemModifiedDate | Export-CSV C:\Varredura.csv -NoTypeInformation
Now I want to list all items in all webs found, so that would mean another loop. Is there a way I could do this using the same script? I mean something like this:
Get-SPWebApplication http://site | Get-SPSite -Limit All | Get-SPWeb -Limit All | Get-SPList -Limit All| GetSPListItem -Limit All | Select Title, URL, ID, ParentWebID, LastItemModifiedDate |
Also, just so I can understand this, what does the | means in the code exactly?
Thanks in advance.