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 somedomain.com |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 stl-dcna-04.na.erac.com
where-object {$_.exchangeguid -eq 027293e0-2600-40d2- <<<< 96b5-d8b0a7ce63dd}

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

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