SRSVegas

asked on

# Exchange PowerShell Command to find blank values

How can I filter the results of an Exchange 2007 command shell command for values that have a blank value? I know how to do it for a certain value. For example:

get-mailbox | where {$_.ManagedFolderMailboxPolicy -eq "30 Day Deleted Item Retention Policy"}

How do I filter for mailboxes where $_.ManagedFolderMailboxPolicy is blank?

get-mailbox | where {$_.ManagedFolderMailboxPo

How do I filter for mailboxes where $_.ManagedFolderMailboxPol

ASKER CERTIFIED SOLUTION

membership

This solution is only available to members.

To access this solution, you must be a member of Experts Exchange.

have you had a chance to try out these solutions?

ASKER

get-mailbox | where {$_.ManagedFolderMailboxPolicy -eq $Null} worked. Without -eq $Null I get every mailbox back.

Thanks,

ML

Thanks,

ML

in those instance you can try the following

Get-Mailbox | where {!$_.ManagedFolderMailboxP