Kasper Katzmann
asked on
Get all mailboxes, but not from specific database
I have 7 databases on my Exchange 2010 server. Lets call them A, B, C, D, E, F and G.
I need to get all mailboxes from all databases, except database C and F.
I have tried with
Can anyone help me here?
I need to get all mailboxes from all databases, except database C and F.
I have tried with
Get-Mailbox -ResultSize Unlimited | Where {MailboxDatabase -ne 'C' OR 'F'}
But without any success.Can anyone help me here?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It solves the problem and answers the question
Open in new window
Open in new window