New-SPOSite
New-SPOSite [-CompatibilityLevel <Int32>] [-LocaleId <UInt32>] [-NoWait] -Owner <String> [-Template <String>] [-TimeZoneId <Int32>] [-Title <String>] -Url <UrlCmdletPipeBind> [<CommonParameters>]
To Create a New Site
New-SPOSite -Url https://doubleecpu805.sharepoint.com/sites/AdventureWorks -Owner eecpu805@doubleecpu805.onmicrosoft.com -CompatibilityLevel 15 -LocaleID 1033 -Template "STS#0" -TimeZoneId 13 -Title "Adventure Works site collection"
Parameters
-CompatibilityLevel
This parameter no longer has any effect and only accepts a value of ’15’.
Type: Int32
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-LocaleId
Specifies the language of this site collection. For more information, see Locale IDs Assigned by Microsoft (https://go.microsoft.com/fwlink/p/?LinkId=242911). The Template and LocaleId parameters must be a valid combination as returned from the Get-SPOWebTemplate cmdlet.
Type: UInt32
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-NoWait
Specifies to continue executing script immediately.
Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-Owner
Specifies the user name of the site collection’s primary owner. The owner must be a email-enabled user instead of a security group or an email-enabled security group.
Type: String
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-ResourceQuota
Specifies the quota for this site collection in Sandboxed Solutions units. This value must not exceed the company’s aggregate available Sandboxed Solutions quota. The default value is 0. For more information, see Resource Usage Limits on Sandboxed Solutions in SharePoint. Note that this parameter is now obsolete and has been deprecated.
Type: Double
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-StorageQuota
Specifies the storage quota for this site collection in megabytes. This value must not exceed the company’s available quota.
Type: Int64
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-Template
Specifies the site collection template type. Use the Get-SPOWebTemplate cmdlet to get the list of valid templates. If no template is specified, one can be added later. The Template and LocaleId parameters must be a valid combination as returned from the Get-SPOWebTemplate cmdlet
Type: String
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-TimeZoneId
Specifies the time zone of the site collection. For more information, see SPRegionalSettings.TimeZones Property.
Type: Int32
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-Title
Specifies the title of the site collection.
Type: String
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Applies to: SharePoint Online
-Url Specifies the full URL of the new site collection. It must be in a valid managed path in the company’s site. For example, for company contoso, valid managed paths are https://contoso.sharepoint.com/sites and https://contoso.sharepoint.com/teams.
Type: UrlCmdletPipeBind
Position: Named
Default value: None
Accept pipeline input: True
Accept wildcard characters: False
Applies to: SharePoint Online