I have a site collection with inside of it alot of sub site collection for each mysite instance. I would like to create a powershell foreach script which will set a quota template to each site collection. Can someone help me please?

1 Answer
1

To use a quota template, you need to have it's GUID to be able to use it in the following second script. The other method would be to use -MaxSize and
-WarningSize attributes, which is usually what you use quota for.

A quota template defines a space limit, the type of quota (hard or soft), and (optionally) a set of notifications that will be generated automatically when quota usage reaches defined threshold levels.

By creating quotas exclusively from templates, you can centrally manage your quotas by updating the templates instead of replicating changes in each quota. This feature simplifies the implementation of storage policy changes by providing one central point where you can make all updates.