Any ideas why Remove-MailboxPermission is warning me?
I have a mailbox (TestMailbox) with user access granted on it for TestUser:
then I try to remove that ACE:
and I get this ugly yellow warning (I prefer scripts to be silent as long as they work as expected)
obviosly the ACE is gone anyway:
when I try to remove it again (now that it's gone already), I get no more warning:
what am I doing wrong? bug or feature? I guess "SilentlyContinue" would fix the issue, but I'd love to understand what I'm doing wrong before I paint over it...
ErrorAction (SilentlyContinue) does not affect Warnings; it only affects errors. So that's why you're not suppressing the warning. You can suppress warnings using the $WarningPreference variable if needed.
As for the root cause of the warning – well, tough to say. On the face of it, looks like a bug.
You must be logged in to reply to this topic.