Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run.ps1 #88

Closed
wants to merge 1 commit into from
Closed

Conversation

dloughland87
Copy link

Without running the set-mailbox against a UPN, the default Identity value can return multiple results and prevent these mailbox's from applying the action.

For example, with the existing code, I'm receiving the "The operation couldn't be performed because 'Andrew Smith' matches multiple entries." error on many mail accounts where the user has multiple accounts and therefor matches multiple get-mailbox without specifying the actual UPN. My test user Andrew Smith returns the below data:

PS> get-mailbox -Identity "Andrew Smith" | fl Identity,MessageCopy*

Identity : Andrew Smith
MessageCopyForSentAsEnabled : False
MessageCopyForSendOnBehalfEnabled : False
MessageCopyForSMTPClientSubmissionEnabled : True

Identity : Andrew Smith_aa40332fcb
MessageCopyForSentAsEnabled : True
MessageCopyForSendOnBehalfEnabled : True
MessageCopyForSMTPClientSubmissionEnabled : True

Without running the set-mailbox against a UPN, the default Identity value can return multiple results and prevent these mailbox's from applying the action.

For example, with the existing code, I'm receiving the "The operation couldn't be performed because 'Andrew Smith' matches multiple entries." error on many mail accounts where the user has multiple accounts and therefor matches multiple get-mailbox without specifying the actual UPN. My test user Andrew Smith returns the below data:

PS> get-mailbox -Identity "Andrew Smith"  | fl Identity,MessageCopy*

Identity                                  : Andrew Smith
MessageCopyForSentAsEnabled               : False
MessageCopyForSendOnBehalfEnabled         : False
MessageCopyForSMTPClientSubmissionEnabled : True

Identity                                  : Andrew Smith_aa40332fcb
MessageCopyForSentAsEnabled               : True
MessageCopyForSendOnBehalfEnabled         : True
MessageCopyForSMTPClientSubmissionEnabled : True
@dloughland87 dloughland87 reopened this Dec 5, 2021
@KelvinTegelaar
Copy link
Owner

Not accepting new FRs/PRs due to temporary freeze, but will implement fix during rewrite. :)

JohnDuprey pushed a commit that referenced this pull request Sep 4, 2024
[pull] dev from KelvinTegelaar:dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants