We've recently migrated to SharePoint 2013 and I would like to compare the item count from all lists.
Our SharePoint 2010 environment consists of 1 site collection. The webs that I want to collect list information from are under /Clients.
Our SharePoint 2013 environment consists of 2 site collections. They are split into /archives/Clients and /solutions/Clients respectively.
During our migration, we determined what sites should be put into the /archives/Clients site collection, while all others go into the /solutions/Clients site collection.
I've created two CSVs (one from 2010, and one from 2013) that output the following list information: Url (DefaultViewUrl), Title, and Count (ItemCount). My question is what is the best method to compare these two CSVs to only show the difference between the Count column? I simply want to find where lists show a different count in the 2013 environment to the 2010 one.
Thanks,
Below is the PowerShell I used to output the library information from SharePoint 2010.
$site = Get-SPSite -Identity http://mysitecol $webs = $site.AllWebs | Where-Object {$_.Url -like "*clients*"} foreach ($web in $webs) { $lists = $web.Lists | Where-Object {$_.Hidden -ne "True" -and $_.Title -ne "Tasks" -and $_.Title -ne "Workflow Tasks"} foreach ($list in $lists) { $itemCount = $list.ItemCount $list.DefaultViewUrl + "," + $list.Title + "," + $itemCount >> C:\Temp\libs2010.csv } }
Below is the PowerShell I used to output library information from SharePoint 2013.
$site = Get-SPSite -Identity http://mysitecol/archives/Clients $webs = $site.AllWebs foreach ($web in $webs) { $lists = $web.Lists | Where-Object {$_.Hidden -ne "True" -and $_.Title -ne "Tasks" -and $_.Title -ne "Workflow Tasks"} foreach ($list in $lists) { $itemCount = $list.ItemCount $list.DefaultViewUrl.Replace("/archives", "") + "," + $list.Title + "," + $itemCount >> C:\temp\libs2013.csv } }