Insider
2007-06-18 17:24:00 UTC
I'm having trouble specifying a WHERE or LIKE clause on my WMI query to the
MicrosoftExchangev2 namespace.
This works OK
Select * From Exchange_Mailbox Where MailboxDisplayName='MyAlias'
This returns no data:
Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My*'
neither does this:
Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My%'
Other options fail too (LIKE '*Alia*', LIKE '%Alia%' etc etc etc)
I can use the LIKE clause on the root\CIMv2 namespace wihtout any problems.
Does the MicrosoftExchangev2 support the LIKE clause? Can anybody else get
it working, specifically with the Exchange_Mailbox class.
Regards,
Steven
MicrosoftExchangev2 namespace.
This works OK
Select * From Exchange_Mailbox Where MailboxDisplayName='MyAlias'
This returns no data:
Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My*'
neither does this:
Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My%'
Other options fail too (LIKE '*Alia*', LIKE '%Alia%' etc etc etc)
I can use the LIKE clause on the root\CIMv2 namespace wihtout any problems.
Does the MicrosoftExchangev2 support the LIKE clause? Can anybody else get
it working, specifically with the Exchange_Mailbox class.
Regards,
Steven