Hi,
I am collecting Forwarding address enabled mailboxes list in Exchange server 2007. In the below script the IF condition is not working as I expected. Anyone can help me to fix this issue? Thanks
$Alias = Get-Mailbox -Resultsize unlimitedForEach ($user in $alias)
{
$UserName = get-mailbox -identity "$user"
$user = $UserName.DisplayName
$Address = $UserName.forwardingaddress.rdn.escapedname
If ($address -eq "true")
{
Write-Host "$user"
Write-Host "$address"
}
}


