Skip to content

Commit 30f5334

Browse files
authored
Merge pull request MicrosoftDocs#3063 from j0rt3g4/Issue2903
Issue 2903
2 parents 73abd1b + 209475e commit 30f5334

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

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

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,8 @@ Sets or updates one or more properties' values for a site collection.
1616

1717
## SYNTAX
1818

19-
### ParamSet2
20-
```
21-
Set-SPOSite [-Identity] <SpoSitePipeBind> -EnablePWA <Boolean> [-Confirm] [-WhatIf] [<CommonParameters>]
22-
```
23-
2419
### ParamSet1
25-
```
20+
```powershell
2621
Set-SPOSite [-Identity] <SpoSitePipeBind> [-AllowSelfServiceUpgrade <Boolean>] [-Confirm]
2722
[-DenyAddAndCustomizePages <Boolean>] [-LocaleId <UInt32>] [-LockState <String>] [-NoWait] [-Owner <String>]
2823
[-ResourceQuota <Double>] [-ResourceQuotaWarningLevel <Double>]
@@ -38,15 +33,21 @@ Set-SPOSite [-Identity] <SpoSitePipeBind> [-AllowSelfServiceUpgrade <Boolean>] [
3833
[-ShowPeoplePickerSuggestionsForGuestUsers <Boolean>] [-StorageQuotaReset]
3934
[-DefaultSharingLinkType] [-DefaultLinkPermission] [<CommonParameters>]
4035
```
36+
### ParamSet2
37+
```powershell
38+
Set-SPOSite [-Identity] <SpoSitePipeBind> -EnablePWA <Boolean> [-Confirm] [-WhatIf] [<CommonParameters>]
39+
```
40+
41+
4142

4243
### ParamSet3
43-
```
44+
```powershell
4445
Set-SPOSite [-Identity] <SpoSitePipeBind> [-Confirm] [-DisableSharingForNonOwners] [-WhatIf]
4546
[<CommonParameters>]
4647
```
4748

4849
### ParamSet4 (valid for Group Site Collection)
49-
```
50+
```powershell
5051
Set-SPOSite [-Identity] <SpoSitePipeBind> [-AllowSelfServiceUpgrade <Boolean>] [-Confirm]
5152
[-DenyAddAndCustomizePages <Boolean>] [-LocaleId <UInt32>] [-LockState <String>] [-NoWait] [-Owner <String>]
5253
[-ResourceQuota <Double>] [-ResourceQuotaWarningLevel <Double>]
@@ -67,47 +68,57 @@ For permissions and the most current information about Windows PowerShell for Sh
6768
## EXAMPLES
6869

6970
### -----------------------EXAMPLE 1-----------------------------
70-
```
71+
```powershell
7172
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner [email protected] -NoWait
7273
```
7374

7475
Example 1 updates the owner of site collection https://contoso.sharepoint.com/sites/site1 to the person whose email address is [email protected]. This cmdlet is executed immediately without delay.
7576

7677

7778
### -----------------------EXAMPLE 2-----------------------------
78-
```
79+
```powershell
7980
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -ResourceQuota 0 -StorageQuota 15000
8081
```
8182

8283
Example 2 updates the settings of site collection https://contoso.sharepoint.com/sites/site1. The storage quota is updated to 15000 megabytes and the resource quota is updated to 0 megabytes.
8384

8485

8586
### -----------------------EXAMPLE 3-----------------------------
86-
```
87+
```powershell
8788
Set-SPOSite -Identity https://contoso.sharepoint.com -StorageQuota 3000 -StorageQuotaWarningLevel 2000
8889
```
8990

9091
This example updates the settings of site collection https://contoso.sharepoint.com. The storage quota is updated to 3000 megabytes and the storage quota warning level is updated to 2000 megabytes.
9192

9293

9394
### -----------------------EXAMPLE 4-----------------------------
94-
```
95+
```powershell
9596
Set-SPOSite -Identity https://contoso.sharepoint.com -DisableSharingForNonOwners
9697
```
9798

9899
Example 4 prevents non-owners of a site from inviting new users to the site.
99100

100101

101102
### -----------------------EXAMPLE 5-----------------------------
102-
```
103+
```powershell
103104
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/groupname -StorageQuota 3000 -StorageQuotaWarningLevel 2000
104105
```
105106

106107
This example sets the quota for the site.
107108

109+
110+
108111
> [!NOTE]
109112
> If Site Collection Storage Management is enabled for the tenant, you will not be able to set quota and will have a generic error returned. To workaround this issue, set the site collection storage management to "manual" temporarily, set your quotas and then set the site collection storage management setting back to its original setting.
110113
114+
115+
### -----------------------EXAMPLE 6-----------------------------
116+
```powershell
117+
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnablePWA $true
118+
```
119+
120+
Example 6 enables the site "site1" to create Project Web Applications (PWA).
121+
111122
## PARAMETERS
112123

113124
### -EnablePWA

0 commit comments

Comments
 (0)