Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Connect to Exchange online
- #jared.heinrichs@domain.com exists.
- #If I type:
- get-recipient -filter {emailaddresses -like "*jared.heinrichs@domain.com*"}
- <#
- =============================================================
- It returns
- Name RecipientType
- ---- -------------
- Jared Heinrichs UserMailbox
- =============================================================
- #>
- $MigratedEmailAddress = "jared.heinrichs@domain.com"
- get-recipient -filter {"emailaddresses -like '*'$MigratedEmailAddress'*"}
- <#
- =============================================================
- Cannot bind parameter 'Filter' to the target. Exception setting "Filter": "Invalid filter syntax. For a description of the
- filter parameter syntax see the command help.
- ""emailaddresses -like '*'$MigratedEmailAddress'*"" at position 1."
- At C:\Users\********\AppData\Local\Temp\tmp_wc1ehair.2xn\tmp_wc1ehair.2xn.psm1:28581 char:9
- + $steppablePipeline.End()
- + ~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : WriteError: (:) [Get-Recipient], ParameterBindingException
- + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.GetRecipient
- =============================================================
- #>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement