Skip to content

Commit 549abf1

Browse files
committed
Update disable-access-to-exchange-online-powershell.md
Issue #10001
1 parent 16321db commit 549abf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ Exchange Online PowerShell enables you to manage your Exchange Online organizati
2424

2525
- Microsoft 365 global admins have access to Exchange Online PowerShell, and can use the procedures in this article to configure Exchange Online PowerShell access for other users. For more information about permissions in Exchange Online, see [Feature Permissions in Exchange Online](/exchange/permissions-exo/feature-permissions).
2626

27+
> [!IMPORTANT]
28+
> Don't run commands like `Get-User | Set-User -RemotePowerShellEnabled $false` to universally remove remote PowerShell access without considering admin accounts. Use the procedures in this article to selectively remove remote PowerShell access, or preserve admin access for at least one account by using the following syntax in your removal command: `Get-User | Where-Object {$_.UserPrincipalName -ne '[email protected]'} | Set-User -RemotePowerShellEnabled $false`.
29+
>
30+
> If you accidentally lock yourself out of remote PowerShell access, create a new admin user account, and then use that account to give yourself remote PowerShell access.
31+
2732
- You can only use Exchange Online PowerShell to perform this procedure. To connect to Exchange Online PowerShell, see [Connect to Exchange Online PowerShell](connect-to-exchange-online-powershell.md).
2833

2934
- For detailed information about OPath filter syntax in Exchange Online, see [Additional OPATH syntax information](recipient-filters.md#additional-opath-syntax-information).

0 commit comments

Comments
 (0)