SharePoint Admin must know PowerShell Scripts

  1. Finding a Correlation ID error:

    Merge-SPlogfile –Path c:\log.log –Correlation ba05e237-0680-403a-b9f6-e49f96ac55d4
  2. Quickly restore a deleted site collection.

    Get-SPDeletedSite | select Path , siteid
  3. 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