Skip to content

Commit 8033537

Browse files
committed
Updated Examples and Parameters
1 parent 6030009 commit 8033537

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

sharepoint/sharepoint-ps/sharepoint-online/New-SPOSite.md

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,36 @@ For permissions and the most current information about Windows PowerShell for Sh
3131

3232
## EXAMPLES
3333

34-
### Example 1: Create a new site collection based on Team Site template (classic experience)
34+
### -----------------------EXAMPLE 1-----------------------------
3535
```
36-
PS C:\> New-SPOSite -Url https://contoso.sharepoint.com/sites/teamsite -Title "Classic Team Site" -Owner admin@contoso.onmicrosoft.com -StorageQuota 20 -Template STS#0
36+
New-SPOSite -Url http://contoso.sharepoint.com/sites/mynewsite -Owner joe.healy@contoso.com -StorageQuota 1000 -Title "My new site collection"
3737
```
3838

39-
This command creates a new site collection based on Team Site template (classic experience).
39+
Example 1 creates a new site collection for the current company with specified site URL, title and owner. The storage quota is set to 1000 megabytes.
40+
41+
### -----------------------EXAMPLE 2-----------------------------
42+
```
43+
New-SPOSite -Url http://contoso.sharepoint.com/sites/mynewsite -Owner [email protected] -StorageQuota 1000 -CompatibilityLevel 15 -LocaleID 1033 -ResourceQuota 300 -Template "STS#0" -TimeZoneId 13 -Title "My new site collection"
44+
```
45+
46+
Example 2 creates a new site collection for the current company with specified site URL, title, owner and template. The storage quota is set to 1000 megabytes and the resource quota is set to 300 megabytes. The template compatibility level is set to 15 which means that the site collection only supports the SharePoint 2013 template. The language is set to English - United States (LocaleID = 1033) and the time zone is set to (GMT-08:00) Pacific Time (US and Canada) (TimeZone = 13).
47+
48+
### -----------------------EXAMPLE 3-----------------------------
49+
```
50+
New-SPOSite -Url https://contoso.sharepoint.com/sites/accounting -Owner [email protected] -StorageQuota 100 -NoWait -ResourceQuota 50 -Template STS#0
51+
```
52+
53+
Example 3 creates a new site collection for the current company with specified site URL, owner and template. The storage quota is set to 100 megabytes and the resource quota is set to 50 megabytes. This cmdlet is executed immediately without delay.
4054

4155

4256
## PARAMETERS
4357

4458
### -CompatibilityLevel
45-
{{Fill CompatibilityLevel Description}}
59+
Specifies the version of templates to use when you are creating a new site collection. This value sets the initial CompatibilityLevel value for the site collection. The values for this parameter can be SharePoint Server. When this parameter is not specified, the CompatibilityLevel will be by default the highest possible version for the Web application.
60+
61+
Note:
62+
For SharePoint Online Preview, it can only be set to "14" or "15". "14" indicates SharePoint 2010 Products, "15" indicates SharePoint 2013. Other values are not valid and will cause error.
63+
4664

4765
```yaml
4866
Type: Int32
@@ -58,7 +76,8 @@ Accept wildcard characters: False
5876
```
5977
6078
### -LocaleId
61-
{{Fill LocaleId Description}}
79+
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.
80+
6281

6382
```yaml
6483
Type: UInt32
@@ -74,7 +93,8 @@ Accept wildcard characters: False
7493
```
7594

7695
### -NoWait
77-
{{Fill NoWait Description}}
96+
Specifies to continue executing script immediately.
97+
7898

7999
```yaml
80100
Type: SwitchParameter
@@ -90,7 +110,8 @@ Accept wildcard characters: False
90110
```
91111

92112
### -Owner
93-
{{Fill Owner Description}}
113+
Specifies the user name of the site collection’s primary owner. The owner must be a user instead of a security group or an email-enabled security group.
114+
94115

95116
```yaml
96117
Type: String
@@ -106,7 +127,8 @@ Accept wildcard characters: False
106127
```
107128

108129
### -ResourceQuota
109-
{{Fill ResourceQuota Description}}
130+
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 (https://msdn.microsoft.com/en-us/library/gg615462.aspx).
131+
110132

111133
```yaml
112134
Type: Double
@@ -122,7 +144,8 @@ Accept wildcard characters: False
122144
```
123145

124146
### -StorageQuota
125-
{{Fill StorageQuota Description}}
147+
Specifies the storage quota for this site collection in megabytes. This value must not exceed the company’s available quota.
148+
126149

127150
```yaml
128151
Type: Int64
@@ -138,7 +161,8 @@ Accept wildcard characters: False
138161
```
139162

140163
### -Template
141-
{{Fill Template Description}}
164+
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.
165+
142166

143167
```yaml
144168
Type: String
@@ -154,7 +178,8 @@ Accept wildcard characters: False
154178
```
155179

156180
### -TimeZoneId
157-
{{Fill TimeZoneId Description}}
181+
Specifies the time zone of the site collection. For more information, see SPRegionalSettings.TimeZones Property (https://go.microsoft.com/fwlink/p/?LinkId=242912).
182+
158183

159184
```yaml
160185
Type: Int32
@@ -170,7 +195,8 @@ Accept wildcard characters: False
170195
```
171196

172197
### -Title
173-
{{Fill Title Description}}
198+
Specifies the title of the site collection.
199+
174200

175201
```yaml
176202
Type: String
@@ -186,7 +212,8 @@ Accept wildcard characters: False
186212
```
187213

188214
### -Url
189-
{{Fill Url Description}}
215+
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.
216+
190217

191218
```yaml
192219
Type: UrlCmdletPipeBind

0 commit comments

Comments
 (0)