Powershell Query Question
How would I do a query for all mailboxes that have the AntispamBypassEnabled setting set to $true? I've tried several varients of the get-mailbox but I'm not getting any luck. Thanks!
September 27th, 2007 10:33am

This should work for you. get-mailbox -server SERVERNAME | where {$_.AntispamBypassEnabled -eq "$true"} get-mailbox -server SERVERNAME | where {$_.AntispamBypassEnabled -eq "True"}
Free Windows Admin Tool Kit Click here and download it now
September 27th, 2007 12:33pm

No luck on either of those queries. I checked the mailbox attributes and the AntispamBypassEnabled is indeed set to True. I also changed the query around with the "-eq "False"" and still no luck there. Any other ideas?
May 8th, 2008 12:44pm

Try this. [PS] C:\>get-mailbox -server mess7ex01 | where {$_.AntispamBypassEnabled -eq $False} [PS] C:\>get-mailbox -server mess7ex01 | where {$_.AntispamBypassEnabled -eq $True} no quotes around $True or $False
Free Windows Admin Tool Kit Click here and download it now
May 8th, 2008 1:33pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics