- Finding a Correlation ID error:
Merge-SPlogfile –Path c:\log.log –Correlation ba05e237-0680-403a-b9f6-e49f96ac55d4
- Quickly restore a deleted site collection.
Get-SPDeletedSite | select Path , siteid
- Quickly check for errors on a content database.
Test-SPContentDatabase -name WSS_Content_DB –webapplication
##Output to CSV format
Test-spcontentdatabase -name WSS_Content_DB –webapplication [SiteURL] | ConvertTo-CSV | Out-file c:\Test.csv
This code snippet for SharePoint admin must know PowerShell scripts.