You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/p/?LinkID=113216).
The Comment parameter specifies an optional comment. If you specify a value that contains spaces, enclose the value in quotation marks ("), for example: "This is an admin note".
The ExceptIfOneDriveSharedBy parameter specifies the users to exclude from the policy (the sites of the OneDrive for Business user accounts are included in the policy). You identify the users by UPN ([email protected]).
133
+
134
+
To use this parameter, OneDrive for Business sites need to be included in the policy (the OneDriveLocation parameter value is All, which is the default value).
135
+
136
+
To enter multiple values, use the following syntax: `<value1>,<value2>,...<valueX>`. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"<value1>","<value2>",..."<valueX>"`.
137
+
138
+
You can't use this parameter with the OneDriveSharedBy parameter.
139
+
140
+
```yaml
141
+
Type: RecipientIdParameter[]
142
+
Parameter Sets: (All)
143
+
Aliases:
144
+
Applicable: Security & Compliance
145
+
146
+
Required: False
147
+
Position: Named
148
+
Default value: None
149
+
Accept pipeline input: False
150
+
Accept wildcard characters: False
151
+
```
152
+
129
153
### -ExchangeLocation
130
154
The ExchangeLocation parameter specifies whether to include email messages in the policy. The valid value for this parameter is All. If you don't want to include email messages in the policy, don't use this parameter (the default value is blank or $null).
131
155
@@ -342,6 +366,28 @@ Accept pipeline input: False
342
366
Accept wildcard characters: False
343
367
```
344
368
369
+
### -OneDriveSharedBy
370
+
The OneDriveSharedBy parameter specifies the users to include in the policy (the sites of the OneDrive for Business user accounts are included in the policy). You identify the users by UPN ([email protected]).
371
+
372
+
To use this parameter, OneDrive for Business sites need to be included in the policy (the OneDriveLocation parameter value is All, which is the default value).
373
+
374
+
To enter multiple values, use the following syntax: `<value1>,<value2>,...<valueX>`. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"<value1>","<value2>",..."<valueX>"`.
375
+
376
+
You can't use this parameter with the ExceptIfOneDriveSharedBy parameter.
377
+
378
+
```yaml
379
+
Type: RecipientIdParameter[]
380
+
Parameter Sets: (All)
381
+
Aliases:
382
+
Applicable: Security & Compliance
383
+
384
+
Required: False
385
+
Position: Named
386
+
Default value: None
387
+
Accept pipeline input: False
388
+
Accept wildcard characters: False
389
+
```
390
+
345
391
### -OverwriteLabel
346
392
The OverwriteLabel parameter specifies whether to overwrite a manual label. Valid values are:
0 commit comments