Search code examples
powershellexchange-serverexchange-server-2007

exchange powershell : parsing an array boolean value


In my output, I get

@{ActiveSyncEnabled=False}

how do I parse this so that it just says "False"?

the output is coming from this line of code:

 $pda = get-casmailbox -Anr $user.displayname | select activesyncenabled 

Solution

  • I don't have access to an exchange box right now, but the information should be there now for someone that does. Here is what worked:

    $pda = get-casmailbox -Anr $user.displayname | select activesyncenabled $pda.ActiveSyncEnabled | Write-Host