Question

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 
Was it helpful?

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

OTHER TIPS

To access the value directly:

(get-casmailbox -Anr $user.displayname).activesyncenabled

You can skip anr and use the identity member:

Get-CASMailbox $user.Identity

To get all activesyncenabled enabled mailboxes:

get-casmailbox -resultSize unlimited -filter {activesyncenabled -eq $true}

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top