lardo
asked on
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-d8 b0a7ce63dd }
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?
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-d8
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.