Is that a mailbox in ExO? Verify that:
get-user <user>
If a UserMailbox it will display:
Name RecipientType
---- -------------
User UserMailbox
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have to disable RemotePowerShell and following the microsoft documentation I did the steps below:
1) Connected to ExchangeOnline
Install-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName adminUser Get-User -Identity email | Format-List RemotePowerShellEnabled
2) Execute the command
Set-User -Identity userEmail -RemotePowerShellEnabled $false
Unfortunatelly I am receiving the error below:
Write-ErrorMessage : Ex04C125|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|unable find user or group ....
If I run the command on "exchange management shell" it works but when I check on exchange online I can see it is still enabled
Is that a mailbox in ExO? Verify that:
get-user <user>
If a UserMailbox it will display:
Name RecipientType
---- -------------
User UserMailbox
It seems a Microsoft bag....
The work around is to use "-UseRPSSession".
The command should be: Connect-ExchangeOnline -UseRPSSession -UserPrincipalName .....
Sorry the delay, Yes, I can confirm, using the UseRPSSession switch allows this to work. Good catch!