I am trying to script the deployment of multiple site collections online. This will enable us to create site collections from powershell.

I have previously used the dll's (shown in the image) and then wrote powershell scripts which load the dll's and to create the following objects. This has been successful in the past.

  • Site Collections
  • Document Libraries
  • Activate features
  • Create Content Types

enter image description here

However I have been informed it is possible to use Sharepoint Online Management Shell to achieve the same functionality without loading the dll's. Does anyone have any examples that I can see?


To create a site collection use this cmdlet: New-SPOSite described in detail here.

Example usage from link:

New-SPOSite -Url https://contoso.sharepoint.com/sites/accounting -Owner admin@contoso.com -StorageQuota 100 -NoWait -ResourceQuota 50 -Template STS#0
  • Thanks Robert. However is it possible to create Document Libraries Activate features Create Content Types – Miyagi Dec 11 '15 at 15:51
  • For those kinds of more advanced deployments I would keep using CSOM as you have done before, it is a much more complete API available than in the online management shell – Robert Lindgren Dec 11 '15 at 19:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.