Get-Mailbox * -ResultSize Unlimited | Where {($_.DeliverToMailBoxAndForward -eq $false) `
-and ($_.forwardingsmtpaddress -eq $true)} | Set-Mailbox -DeliverToMailboxAndForward $true
Does anyone know why this code doesn't work? It Seems correct, it should select the mailboxes with forwarding on and then if delivertomailboxandforward is false, set it to true?
Thanks