Skip to content

Commit 8af9593

Browse files
committed
Formatting fix
1 parent ac1d237 commit 8af9593

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

exchange/docs-conceptual/control-remote-powershell-access-to-exchange-servers.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,15 @@ To disable access to remote PowerShell for any number of users based on an exist
6262

6363
```powershell
6464
$<VariableName> = <Get-Mailbox | Get-User> -ResultSize Unlimited -Filter <Filter>
65-
```
6665
67-
```powershell
6866
$<VariableName> | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
6967
```
7068

7169
This example removes access to remote PowerShell for all users whose **Title** attribute contains the value "Sales Associate".
7270

7371
```powershell
7472
$DSA = Get-User -ResultSize Unlimited -Filter "(RecipientType -eq 'UserMailbox') -and (Title -like '*Sales Associate*')"
75-
```
7673
77-
```powershell
7874
$DSA | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
7975
```
8076

@@ -84,9 +80,7 @@ To disable access to remote PowerShell for a list of specific users, use the fol
8480

8581
```powershell
8682
$<VariableName> = Get-Content <text file>
87-
```
8883
89-
```powershell
9084
$<VariableName> | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
9185
```
9286

@@ -98,9 +92,7 @@ After you populate the text file with the user accounts you want to update, run
9892

9993
```powershell
10094
$NPS = Get-Content "C:\My Documents\NoPowerShell.txt"
101-
```
10295
103-
```powershell
10496
$NPS | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
10597
```
10698

exchange/docs-conceptual/disable-access-to-exchange-online-powershell.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,15 @@ To disable access to Exchange Online PowerShell for any number of users based on
6161

6262
```powershell
6363
$<VariableName> = <Get-Mailbox | Get-User> -ResultSize unlimited -Filter <Filter>
64-
```
6564
66-
```powershell
6765
$<VariableName> | foreach {Set-User -Identity $_.WindowsEmailAddress -RemotePowerShellEnabled $false}
6866
```
6967

7068
This example removes access to Exchange Online PowerShell for all users whose **Title** attribute contains the value "Sales Associate".
7169

7270
```powershell
7371
$DSA = Get-User -ResultSize unlimited -Filter "(RecipientType -eq 'UserMailbox') -and (Title -like 'Sales Associate*')"
74-
```
7572
76-
```powershell
7773
$DSA | foreach {Set-User -Identity $_.WindowsEmailAddress -RemotePowerShellEnabled $false}
7874
```
7975

@@ -83,9 +79,7 @@ To disable access to Exchange Online PowerShell for a list of specific users, us
8379

8480
```powershell
8581
$<VariableName> = Get-Content <text file>
86-
```
8782
88-
```powershell
8983
$<VariableName> | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
9084
```
9185

@@ -97,9 +91,7 @@ After you populate the text file with the user accounts you want to update, run
9791

9892
```powershell
9993
$NPS = Get-Content "C:\My Documents\NoPowerShell.txt"
100-
```
10194
102-
```powershell
10395
$NPS | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
10496
```
10597

0 commit comments

Comments
 (0)