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
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
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
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}