I am looking for a exchange command to get all users who are in OU Test1 but their mailboxes are not located in Mailbox database "Disabled user DB".
something like this i am thinking of:
[PS] C:\Windows\system32>Get-Mailbox -OrganizationalUnit"OU=DisableUsers,DC=abc,DC=com" | ?{$_.database -ne "Disabled Database 1"}