searching for exchangeguid in powershell

I am trying to search for a mailbox by using the GUID that is provided to me in an error from MOM.
I am getting an error in powershell but I do not know why.  Here is the following:

[PS] R:\>get-mailbox -resultsize unlimited -domaincontroller |where-object {$_.exchangeguid -eq 027293e0-2600-40d2-96b5-d8b0a7ce63dd}
Unexpected token '2' in expression or statement.
At line:1 char:130
+ get-mailbox -resultsize unlimited -domaincontroller
where-object {$_.exchangeguid -eq 027293e0-2600-40d2- <<<< 96b5-d8b0a7ce63dd}

Can anyone tell me what I am doing wrong?
Who is Participating?
027293e0-2600-40d2-96b5-d8b0a7ce63dd needs to be in ""
when you do -eq it does and EXACT match

[PS] R:\>get-mailbox -resultsize unlimited -domaincontroller |where-object {$_.exchangeguid -eq "027293e0-2600-40d2-96b5-d8b0a7ce63dd"}
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.