locked
get quota of a collection using poowershell RRS feed

  • Question

  • Is there a way to retrieve the max and warning storage level from sharepoint 2007? I tried the following but I get "object does not match target type."

    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

    $quota_max = [Microsoft.SharePoint.Administration.SPQuota].GetProperty("StorageMaximumLevel")

    $CurrentQuotaMax = ($quota_max.GetValue('spcontent', $null))

    I'm getting Exception calling "GetValue" with "2" argument(s): "Object does not match target type."

     

    Thursday, June 30, 2011 9:56 PM

Answers

All replies