Exchange Message Tracking Powershell Error

I'm trying to track message on exchange 2010, but am getting the following error using the "&" character.  and getting the error below.  Is there any way around this?

Get-Transportserver | Get-MessageTrackingLog -recipients Test&Email@comcast.net -Start "08/11/2016 11:00:00" -End "08/12/2016 12:00:00" | Select-Object eventid,sender,timestamp,@{Name="Recipients";Expression=$_.recipients}},@Name="RecipientStatus";Expression={$_.recipientstatus}},messagesubject | ConvertTo-Html > "g:\temp\message
track.html"


Error:
& : Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed
Rob ShortsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Adam BrownConnect With a Mentor Sr Solutions ArchitectCommented:
Put the quotes around the entire email address if there are special characters in it.
2
 
FOXActive Directory/Exchange EngineerCommented:
try entering the command like this         -recipients Test"&"Email@comcast.net
1
 
FOXConnect With a Mentor Active Directory/Exchange EngineerCommented:
just like Adam Brown stated              -recipients 'Test&Email@comcast.net'
1
 
Rob ShortsAuthor Commented:
Thank you
0
 
Senior IT System EngineerIT ProfessionalCommented:
What's the difference between single quote and double quote ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.