Get ContentDatabase info for each site collections RRS feed

  • Question

  • I want to get info about contentDatabase for each site collections in the farm using powershell. When I run this I get an error. Please advise how can get the requested info.

    PS C:\> [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    PS C:\> $site = New-Object Microsoft.SharePoint.SPSite("https://test")
    PS C:\> $site.ContentDatabase
    out-lineoutput : The field/property: "Id" for type: "Microsoft.SharePoint.Administration.SPContentDatabase" differs only in case from the field/property: "ID". Failed to use non CLS compliant type.

    Friday, June 1, 2012 4:29 PM


All replies