Back to some basic stuff today. I was trying to create a process to pre-stage empty site collections for content to be migrated. In part of the pre-staging process I wanted to wipe out the default quota, using powershell, on the site for the duration of the migration.

Turns out it is easy.

$site = Get-SPSite "someURL"
$site.Quota = $null

That will force the site collection back to an individual quota and set it to unlimited. If you wanted to set the max and warning sizes you can use the Set-SPSite cmdlet. (The below example is from Technet: http://technet.microsoft.com/en-us/library/ff607958.aspx

Set-SPSite –identity "http://sitename" -MaxSize 4000000 -WarningSize 2000000

Interestingly you can’t just set MaxSize and WarningSize to 0. Apparently if you try that it will fail since the quota template is still technically applied to the site.