70-332 · Question #127
70-332 Question #127: Real Exam Question with Answer & 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-Ho
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.