Skip to content

Commit 8fb9457

Browse files
authored
Merge pull request MicrosoftDocs#7306 from dariomws/patch-234
Fixed example in disable-access-to-exchange-online-powershell.md
2 parents 6a70e8f + 0a9c641 commit 8fb9457

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ $<VariableName> = Get-Content <text file>
8888
$<VariableName> | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
8989
```
9090

91-
This example uses the text file C:\My Documents\NoPowerShell.txt to identify the users by their accounts. The text file must contain one account on each line as follows:
91+
The following example uses the text file C:\My Documents\NoPowerShell.txt to identify the users by their accounts. The text file must contain one account on each line as follows:
9292

9393
9494
@@ -99,7 +99,7 @@ $NPS = Get-Content "C:\My Documents\NoPowerShell.txt"
9999
```
100100

101101
```powershell
102-
$NPS | foreach {Set-User -Identity $_.MicrosoftOnlineServicesID -RemotePowerShellEnabled $false}
102+
$NPS | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false}
103103
```
104104

105105
## View the Exchange Online PowerShell access for users

0 commit comments

Comments
 (0)