70-332 · Question #127
Drag and Drop Question A SharePoint 2010 farm contains four site collections. Each site collection has a separate content database. You want to upgrade the farm to SharePoint 2013. You create a…
The solution, as shown in the 'Answer Area' of the image, involves arranging the PowerShell segments as follows: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue Foreach-Object {$SWWebApp in (Get-SPWebApplication)} Foreach-Object {$WebApp.Name |…
Question
Explanation
The solution, as shown in the 'Answer Area' of the image, involves arranging the PowerShell segments as follows: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue Foreach-Object {$SWWebApp in (Get-SPWebApplication)} Foreach-Object {$WebApp.Name | Write-Host -ForegroundColor Green ; Foreach-Object {$CDB in $WebApp.ContentDatabases}} Foreach-Object {Test-SPContentDatabase -Name $CDB.Name -WebApplication $WebApp.URL -ServerInstance $CDB.Server | ConvertTo-Csv | Out-File -Encoding default "Filepath C:_" + $CDB.Name + ".csv"}
Topics
Community Discussion
No community discussion yet for this question.