Skip to content

Commit a350321

Browse files
authored
Update Set-SPOContainer.md
1 parent 84737a7 commit a350321

File tree

1 file changed

+184
-6
lines changed

1 file changed

+184
-6
lines changed

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

Lines changed: 184 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,37 @@ Sets or updates one or more property values for a container in SharePoint Embedd
2121
### ParamSet1
2222

2323
```powershell
24-
Set-SPOContainer [-Identity] <SPOContainerPipeBind> [[-BlockDownloadPolicy <Boolean>]] [<CommonParameters>]
24+
Set-SPOContainer [-Identity] <SPOContainerPipeBind> [-BlockDownloadPolicy <Boolean>]
25+
[-ExcludeBlockDownloadPolicyContainerOwners <Boolean>] [-ReadOnlyForBlockDownloadPolicy <Boolean>] [<CommonParameters>]
2526
```
2627

2728
### ParamSet2
2829

2930
```powershell
30-
Set-SPOContainer [-Identity]<SPOContainerPipeBind> [[-ConditionalAccessPolicy] <SPOConditionalAccessPolicyType>] [<CommonParameters>]
31+
Set-SPOContainer [-Identity] <SPOContainerPipeBind> [-ConditionalAccessPolicy <SPOConditionalAccessPolicyType>]
32+
[-LimitedAccessFileType <SPOLimitedAccessFileType>] [-AllowEditing <Boolean>]
33+
[-ReadOnlyForUnmanagedDevices <Boolean>] [-AuthenticationContextName <String>] [<CommonParameters>]
3134
```
3235

3336
### ParamSet3
3437

3538
```powershell
36-
Set-SPOContainer [-Identity]<SPOContainerPipeBind> [[-SensitivityLabel] <String>] [<CommonParameters>]
39+
Set-SPOContainer [-Identity] <SPOContainerPipeBind> [[-SensitivityLabel] <String>] [<CommonParameters>]
3740
```
3841

39-
### ParamSet1
42+
43+
### ParamSet4
44+
45+
```powershell
46+
Set-SPOContainer [-Identity] <SPOContainerPipeBind> [-RemoveLabel] [<CommonParameters>]
47+
```
48+
49+
### ParamSet5
4050

4151
```powershell
42-
Set-SPOContainer [-Identity]<SPOContainerPipeBind> [-RemoveLabel] [<CommonParameters>]
52+
Set-SPOContainer [-Identity] <SPOContainerPipeBind>
53+
[-SharingDomainRestrictionMode <SharingDomainRestrictionModes>] [-SharingAllowedDomainList <String>]
54+
[-SharingBlockedDomainList <String>] [<CommonParameters>]
4355
```
4456

4557
## DESCRIPTION
@@ -80,7 +92,7 @@ This example sets a sensitivity label on the container.
8092
```powershell
8193
Set-SPOContainer -Identity https://contoso.sharepoint.com/contentstorage/CSP_33a63968-abae-49a3-a255-f83d0ab2260a/ -RemoveLabel
8294
```
83-
This example sets any previously set sensitivity label on the container.
95+
This example removes any previously set sensitivity label on the container.
8496

8597
## PARAMETERS
8698

@@ -98,6 +110,40 @@ Accept pipeline input: False
98110
Accept wildcard characters: False
99111
```
100112
113+
### -AllowEditing
114+
115+
Prevents users from editing Office files in the browser and copying and pasting Office file contents out of the browser window.
116+
117+
PARAMVALUE: False | True
118+
119+
```yaml
120+
Type: Boolean
121+
Parameter Sets: ConditionalAccess
122+
Aliases:
123+
124+
Required: False
125+
Position: Named
126+
Default value: None
127+
Accept pipeline input: False
128+
Accept wildcard characters: False
129+
```
130+
131+
### -AuthenticationContextName
132+
133+
The conditional access authentication context name.
134+
135+
```yaml
136+
Type: String
137+
Parameter Sets: ConditionalAccess
138+
Aliases:
139+
140+
Required: False
141+
Position: Named
142+
Default value: None
143+
Accept pipeline input: False
144+
Accept wildcard characters: False
145+
```
146+
101147
102148
### -BlockDownloadPolicy
103149
As a SharePoint Embedded Administrator, you can block the download of files from SharePoint Embedded containers. This feature does not need Microsoft Entra Conditional Access policies. This feature can be set for individual containers but not at the organization level.
@@ -167,6 +213,138 @@ Accept pipeline input: False
167213
Accept wildcard characters: False
168214
```
169215
216+
### -ExcludeBlockDownloadPolicyContainerOwners
217+
Controls if container owners are excluded from block download policy.
218+
219+
PARAMVALUE: False | True
220+
221+
```yaml
222+
Type: Boolean
223+
Parameter Sets: BlockDownloadPolicy
224+
Aliases:
225+
226+
Required: False
227+
Position: Named
228+
Default value: None
229+
Accept pipeline input: False
230+
Accept wildcard characters: False
231+
```
232+
233+
### -LimitedAccessFileType
234+
The following parameters can be used with -ConditionalAccessPolicy AllowLimitedAccess for both the organization-wide setting and the container-level setting.
235+
236+
OfficeOnlineFilesOnly: Allows users to preview only Office files in the browser. This option increases security but may be a barrier to user productivity.
237+
238+
LimitedAccessFileType WebPreviewableFiles (default): Allows users to preview Office files and other file types (such as PDF files and images) in the browser. Note that the contents of file types other than Office files are handled in the browser. This option optimizes for user productivity but offers less security for files that aren't Office files.
239+
240+
LimitedAccessFileType OtherFiles: Allows users to download files that can't be previewed, such as .zip and .exe. This option offers less security.
241+
242+
```yaml
243+
Type: SPOLimitedAccessFileType
244+
Parameter Sets: ConditionalAccess
245+
Aliases:
246+
Accepted values: OfficeOnlineFilesOnly, WebPreviewableFiles, OtherFiles
247+
248+
Required: False
249+
Position: Named
250+
Default value: None
251+
Accept pipeline input: False
252+
Accept wildcard characters: False
253+
```
254+
255+
### -ReadOnlyForBlockDownloadPolicy
256+
Controls if read-only should be enabled for block download policy.
257+
258+
PARAMVALUE: False | True
259+
260+
```yaml
261+
Type: Boolean
262+
Parameter Sets: BlockDownloadPolicy
263+
Aliases:
264+
265+
Required: False
266+
Position: Named
267+
Default value: None
268+
Accept pipeline input: False
269+
Accept wildcard characters: False
270+
```
271+
272+
### -ReadOnlyForUnmanagedDevices
273+
Controls whether unmanaged devices have read-only access.
274+
275+
PARAMVALUE: False | True
276+
277+
```yaml
278+
Type: Boolean
279+
Parameter Sets: ConditionalAccess
280+
Aliases:
281+
282+
Required: False
283+
Position: Named
284+
Default value: None
285+
Accept pipeline input: False
286+
Accept wildcard characters: False
287+
```
288+
289+
### -SharingAllowedDomainList
290+
Specifies a list of email domains that are allowed for sharing with the external collaborators. Use the space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com".
291+
292+
```yaml
293+
Type: String
294+
Parameter Sets: AllowDenyDomain
295+
Aliases:
296+
297+
Required: False
298+
Position: Named
299+
Default value: None
300+
Accept pipeline input: False
301+
Accept wildcard characters: False
302+
```
303+
304+
### -SharingBlockedDomainList
305+
Specifies a list of email domains that are blocked or prohibited for sharing with the external collaborators. Use space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com".
306+
307+
```yaml
308+
Type: String
309+
Parameter Sets: AllowDenyDomain
310+
Aliases:
311+
312+
Required: False
313+
Position: Named
314+
Default value: None
315+
Accept pipeline input: False
316+
Accept wildcard characters: False
317+
```
318+
319+
### -SharingDomainRestrictionMode
320+
Specifies the sharing mode for external domains.
321+
322+
Possible values are:
323+
324+
None - Do not restrict sharing by domain
325+
AllowList - Sharing is allowed only with external users that have account on domains specified with -SharingAllowedDomainList
326+
BlockList - Sharing is allowed with external users in all domains except in domains specified with -SharingBlockedDomainList
327+
328+
```yaml
329+
Type: SharingDomainRestrictionModes
330+
Parameter Sets: AllowDenyDomain
331+
Aliases:
332+
Accepted values: None, AllowList, BlockList
333+
334+
Required: False
335+
Position: Named
336+
Default value: None
337+
Accept pipeline input: False
338+
Accept wildcard characters: False
339+
```
340+
341+
342+
### CommonParameters
343+
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-ProgressAction`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).
344+
345+
346+
347+
170348
## RELATED LINKS
171349

172350
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps)

0 commit comments

Comments
 (0)