Skip to content

Commit c0ba972

Browse files
authored
Merge branch 'master' into patch-2
2 parents 63da3a4 + b6351c2 commit c0ba972

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

exchange/exchange-ps/exchange/devices/Set-DeviceConditionalAccessRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You need to be assigned permissions in the Office 365 Security & Compliance Cent
6565

6666
### -------------------------- Example 1 --------------------------
6767
```
68-
Set-DeviceConditionalAccessRule -Identity "Secure Email{914f151c-394b-4da9-9422-f5a2f65dec30}" -AllowJailbroken $false
68+
Set-DeviceConditionalAccessRule -Identity "Secure Email{914f151c-394b-4da9-9422-f5a2f65dec30}" -AllowJailbroken $false -TargetGroups 95386852-1c11-4302-8733-b9e1058333e3
6969
```
7070

7171
This example modifies the specified mobile device conditional access rule to block jailbroken devices.

exchange/exchange-ps/exchange/role-based-access-control/Remove-ManagementRoleEntry.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ This example removes the New-Mailbox role entry from the Tier 1 Help Desk role.
4343

4444
### -------------------------- Example 2 --------------------------
4545
```
46-
Get-ManagementRoleEntry "Tier 1 Help Desk\New-*" | Remove-ManagementRoleEntry -WhatIf
46+
Get-ManagementRoleEntry "Tier 1 Help Desk\*" | Where-Object {$_.Name -like 'New-*'} | %{Remove-ManagementRoleEntry -Identity "$($_.id)\$($_.name)"}
4747
```
4848

49-
This example removes all the role entries that have the verb New on the Tier 1 Help Desk role by piping the output of the Get-ManagementRoleEntry cmdlet to the Remove-ManagementRoleEntry cmdlet. Because the WhatIf switch has been specified along with the Remove-ManagementRoleEntry cmdlet, the cmdlet lists what changes would have been made but doesn't commit any changes.
49+
This example removes all the role entries that have the verb New on the Tier 1 Help Desk role by piping the output of the Get-ManagementRoleEntry cmdlet to the Where-Object cmdlet which specifies the verb filter and then, these results are being piped to Remove-ManagementRoleEntry cmdlet.
5050

51-
After you verify that the correct role entries will be removed, run the same command without the WhatIf switch to remove the role entries.
51+
This example forces you to acknowledge the command before proceeding.
5252

5353
## PARAMETERS
5454

0 commit comments

Comments
 (0)