Skip to content

Commit 72935c9

Browse files
Merge pull request #762 from prgundel/patch-1
Update documentation of Set-SPOTenant and Set-SPOSite cmdlet
2 parents d4c02d5 + 5fb7a9e commit 72935c9

File tree

2 files changed

+769
-24
lines changed

2 files changed

+769
-24
lines changed

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

Lines changed: 255 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,19 @@ Set-SPOSite [-Identity] <SpoSitePipeBind> [-AllowSelfServiceUpgrade <Boolean>] [
6767
[-RestrictedAccessControl <Boolean>]
6868
[-RestrictedAccessControlGroups <Guid>]
6969
[-RemoveRestrictedAccessControlGroups <Guid>]
70+
[-ReadOnlyForUnmanagedDevices <Boolean>]
71+
[-ExcludedBlockDownloadGroupIds <Guid>]
72+
[-ExcludeBlockDownloadPolicySiteOwners <Boolean>]
73+
[-ReadOnlyForBlockDownloadPolicy <Boolean>]
74+
[-AuthenticationContextAccessType <SPOAuthenticationContextPolicyAccessType>]
75+
[-HubSiteId <Guid>]
76+
[-InformationBarriersMode <String>]
77+
[-RestrictContentOrgWideSearch <Boolean>]
78+
[-RestrictedAccessControl <Boolean>]
79+
[-RestrictedAccessControlGroups <Guid[]>]
80+
[-AddRestrictedAccessControlGroups <Guid[]>]
81+
[-RemoveRestrictedAccessControlGroups <Guid[]>]
82+
[-ClearRestrictedAccessControl <SwitchParameter>]
7083
[<CommonParameters>]
7184
```
7285

@@ -754,7 +767,7 @@ Disables or enables the Social Bar for Site Collection.
754767

755768
The Social Bar will appear on all modern SharePoint pages with the exception of the home page of a site. It will give users the ability to like a page, see the number of views, likes, and comments on a page, and see the people who have liked a page.
756769

757-
PARAMVALUE: $true | $false
770+
PARAMVALUE: False | True
758771

759772
```yaml
760773
Type: Boolean
@@ -970,7 +983,7 @@ Accept wildcard characters: False
970983

971984
When set to TRUE, the DefaultSharingLinkType will be overriden and the default sharing link will a People with Existing Access link (which does not modify permissions). When set to FALSE (the default), the DefaultSharingLinkType parameter controls the default sharing link type.
972985

973-
PARAMVALUE: $true | $false
986+
PARAMVALUE: False | True
974987

975988

976989
```yaml
@@ -1214,7 +1227,7 @@ Accept wildcard characters: False
12141227

12151228
Prevents users from editing Office files in the browser and copying and pasting Office file contents out of the browser window.
12161229

1217-
PARAMVALUE: $true | $false
1230+
PARAMVALUE: False | True
12181231

12191232
```yaml
12201233
Type: Boolean
@@ -1294,7 +1307,7 @@ As a SharePoint administrator in Microsoft 365, you can block the download of fi
12941307

12951308
Blocking the download of files allows users to remain productive while addressing the risk of accidental data loss. Users have browser-only access with no ability to download, print, or sync files. They also won't be able to access content through apps, including the Microsoft Office desktop apps. When web access is limited, users will see the following message at the top of sites: "Your organization doesn't allow you to download, print, or sync from this site. For help contact your IT department." Read the full documentation for advanced capabilities at [Block download policy for SharePoint sites and OneDrive](https://learn.microsoft.com/sharepoint/block-download-from-sites).
12961309

1297-
PARAMVALUE: $true | $false
1310+
PARAMVALUE: False | True
12981311

12991312
```yaml
13001313
Type: Boolean
@@ -1353,7 +1366,7 @@ The valid values are:
13531366
> c. `ExpireVersionsAfterDays` accepts values of 0 to Never Expire or values >= 30 to delete versions that exceed that time period.
13541367
> When version history limits are managed automatically (`EnableAutoExpirationVersionTrim $true`), setting `MajorVersionLimit` or `ExpireVersionsAfterDays` will result in an error as the count limits are set by the service.
13551368

1356-
PARAMVALUE: $true | $false
1369+
PARAMVALUE: False | True
13571370

13581371
```yaml
13591372
Type: Boolean
@@ -1580,7 +1593,244 @@ Default value: None
15801593
Accept pipeline input: False
15811594
Accept wildcard characters: False
15821595
```
1596+
### -ReadOnlyForUnmanagedDevices
15831597

1598+
Controls whether unmanaged devices have read-only access.
1599+
1600+
PARAMVALUE: False | True
1601+
1602+
```yaml
1603+
Type: Boolean
1604+
Parameter Sets: (All)
1605+
Applicable: SharePoint Online
1606+
Required: False
1607+
Position: Named
1608+
Default value: False
1609+
Accept pipeline input: False
1610+
Accept wildcard characters: False
1611+
```
1612+
1613+
### -ExcludedBlockDownloadGroupIds
1614+
1615+
Exempts users from specified groups from the block download policy and they can fully download any content for the site.
1616+
1617+
```yaml
1618+
Type: Guid[]
1619+
Parameter Sets: (All)
1620+
Aliases:
1621+
Applicable: SharePoint Online
1622+
Required: False
1623+
Position: Named
1624+
Default value: None
1625+
Accept pipeline input: False
1626+
Accept wildcard characters: False
1627+
```
1628+
1629+
### -ExcludeBlockDownloadPolicySiteOwners
1630+
1631+
Controls if site owners are excluded from block download policy.
1632+
1633+
PARAMVALUE: False | True
1634+
1635+
```yaml
1636+
Type: Boolean
1637+
Parameter Sets: ParamSet1
1638+
Aliases:
1639+
Applicable: SharePoint Online
1640+
Required: False
1641+
Position: Named
1642+
Default value: False
1643+
Accept pipeline input: False
1644+
Accept wildcard characters: False
1645+
```
1646+
1647+
### -ReadOnlyForBlockDownloadPolicy
1648+
Controls if read-only should be enabled for block download policy.
1649+
1650+
PARAMVALUE: False | True
1651+
1652+
```yaml
1653+
Type: Boolean
1654+
Parameter Sets: ParamSet1
1655+
Aliases:
1656+
Applicable: SharePoint Online
1657+
Required: False
1658+
Position: Named
1659+
Default value: False
1660+
Accept pipeline input: False
1661+
Accept wildcard characters: False
1662+
```
1663+
1664+
### -ExcludeBlockDownloadSharePointGroups
1665+
1666+
Specifies the groups excluded from the block download policy.
1667+
1668+
```yaml
1669+
Type: String
1670+
Parameter Sets: ParamSet1
1671+
Aliases:
1672+
Applicable: SharePoint Online
1673+
Required: False
1674+
Position: Named
1675+
Default value: None
1676+
Accept pipeline input: False
1677+
Accept wildcard characters: False
1678+
```
1679+
1680+
### -AuthenticationContextAccessType
1681+
1682+
Controls whether Authentication Context Limited Access is enabled for a site.
1683+
1684+
1685+
The valid values are:
1686+
1687+
- AllowLimitedAccess
1688+
- BlockAccess
1689+
1690+
```yaml
1691+
Type: SPOAuthenticationContextPolicyAccessType
1692+
Parameter Sets: ParamSet1
1693+
Aliases:
1694+
Applicable: SharePoint Online
1695+
Required: False
1696+
Position: Named
1697+
Default value: None
1698+
Accept pipeline input: False
1699+
Accept wildcard characters: False
1700+
```
1701+
1702+
### -HubSiteId
1703+
1704+
Sets the hub site for a specified SharePoint site.
1705+
1706+
```yaml
1707+
Type: GUID
1708+
Parameter Sets: ParamSet1
1709+
Aliases:
1710+
Applicable: SharePoint Online
1711+
Required: False
1712+
Position: Named
1713+
Default value: None
1714+
Accept pipeline input: False
1715+
Accept wildcard characters: False
1716+
```
1717+
1718+
### -InformationBarriersMode
1719+
1720+
Specifies the information barrier mode.
1721+
1722+
```yaml
1723+
Type: String
1724+
Parameter Sets: ParamSet1
1725+
Aliases:
1726+
Applicable: SharePoint Online
1727+
Required: False
1728+
Position: Named
1729+
Default value: None
1730+
Accept pipeline input: False
1731+
Accept wildcard characters: False
1732+
```
1733+
1734+
### -RestrictContentOrgWideSearch
1735+
1736+
Controls whether org-wide content search is enabled for a site.
1737+
1738+
PARAMVALUE: False | True
1739+
1740+
```yaml
1741+
Type: Boolean
1742+
Parameter Sets: ParamSet1
1743+
Aliases:
1744+
Applicable: SharePoint Online
1745+
Required: False
1746+
Position: Named
1747+
Default value: False
1748+
Accept pipeline input: False
1749+
Accept wildcard characters: False
1750+
```
1751+
1752+
### -RestrictedAccessControl
1753+
1754+
Sets access restriction policy by group membership.
1755+
1756+
PARAMVALUE: False | True
1757+
1758+
```yaml
1759+
Type: Boolean
1760+
Parameter Sets: ParamSet1
1761+
Aliases:
1762+
Applicable: SharePoint Online
1763+
Required: False
1764+
Position: Named
1765+
Default value: False
1766+
Accept pipeline input: False
1767+
Accept wildcard characters: False
1768+
```
1769+
1770+
### -RestrictedAccessControlGroups
1771+
1772+
Specifies the IDs of groups that have access under an access restriction policy.
1773+
1774+
```yaml
1775+
Type: Guid[]
1776+
Parameter Sets: (All)
1777+
Aliases:
1778+
Applicable: SharePoint Online
1779+
Required: False
1780+
Position: Named
1781+
Default value: None
1782+
Accept pipeline input: False
1783+
Accept wildcard characters: False
1784+
```
1785+
1786+
### -AddRestrictedAccessControlGroups
1787+
1788+
Specifies the IDs of groups to be added to an access restriction policy and gain access.
1789+
1790+
```yaml
1791+
Type: Guid[]
1792+
Parameter Sets: (All)
1793+
Aliases:
1794+
Applicable: SharePoint Online
1795+
Required: False
1796+
Position: Named
1797+
Default value: None
1798+
Accept pipeline input: False
1799+
Accept wildcard characters: False
1800+
```
1801+
1802+
### -RemoveRestrictedAccessControlGroups
1803+
1804+
Specifies the IDs of groups to be removed from access restriction policy and lose access.
1805+
1806+
```yaml
1807+
Type: Guid[]
1808+
Parameter Sets: (All)
1809+
Aliases:
1810+
Applicable: SharePoint Online
1811+
Required: False
1812+
Position: Named
1813+
Default value: None
1814+
Accept pipeline input: False
1815+
Accept wildcard characters: False
1816+
```
1817+
1818+
### -ClearRestrictedAccessControl
1819+
1820+
Clears the list of groups that are given access via an access restriction policy.
1821+
1822+
1823+
```yaml
1824+
Type: SwitchParameter
1825+
Parameter Sets: (All)
1826+
Aliases:
1827+
Applicable: SharePoint Online
1828+
Required: False
1829+
Position: Named
1830+
Default value: None
1831+
Accept pipeline input: False
1832+
Accept wildcard characters: False
1833+
```
15841834
### CommonParameters
15851835

15861836
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

0 commit comments

Comments
 (0)