Aug 05 2022 08:50 AM - edited Aug 05 2022 08:54 AM
Running Powershell 5.1 on a Windows VM with Exchange Management Shell v15 installed, along with 2.0.6 of the EXO PoSh module.
I'm trying to add permissions to a shared mailbox in Exchange Online. I load the modules, Connect-ExchangeOnline, and run Get-MailboxPermission -identity $mailbox. I never use the -domaincontroller switch. The cmdlet always returns that it cannot find the mailbox on one of the on-prem domain controllers.
I must be doing something wrong, but not sure what. How do I get this to only look in EXO? Any advice is greatly appreciated, and thanks in advance!
Aug 05 2022 09:59 AM
Aug 05 2022 10:22 AM
@Vasil Michev Thank you for the quick reply! Would you mind explaining a little more--not sure I follow. Should have mentioned that I'm not an Exchange admin. It would seem that Exchange cmdlets like this that can run in both on prem and EXO would have a switch to indicate which environment it should run in.
Aug 06 2022 08:14 AM
Aug 06 2022 01:36 PM
Aug 06 2022 10:14 PM